GoConqr has a new look! Let us know what you think.

Module 30 of 33 · Media

Modifiers

Kostas Diakogiannis

Modifiers

Modifiers

Modifiers are placed outside the two backslashes on the right side and they modify the method of the pattern, but not the pattern itself.

The first modifier is the i modifier. When present, ignores the case sensitivity between the pattern and the tested string. So returns a match regardless of uppercase or lowercase issues.

The g modifier, or global modifier, does not return only the first match that the pattern identifies but continues throughout the whole string for further matches. This is extremely useful when used alongside the match function for type of string.

Last there is the m modifier, that checks also for multi-line strings and doesn't stop in the end of the first line only. 

Instructions

You must submit an attempt for this quiz to progress. You can submit it after the last question.

Go to the chosen module

Feedback

What is it about?

What do you think of the new look?

How do you like it?