What is the purpose of adding a lowercase “u” as a modifier after the final delimiter in a Perl-compatible regular expression?

Share on facebook
Share on twitter
Share on linkedin
Share on pinterest
  • It makes the dot metacharacter match anything, including newline characters.
  • It makes the pattern match uppercase letters.
  • Both the pattern and subject string are treated as UTF-8.
  • It inverts the greediness of the quantifiers in the pattern so they are not greedy by default.
0/5 (0 Reviews)

Like this article?

Share on facebook
Share on twitter
Share on linkedin
Share on pinterest

Related Posts