LinkedIn PHP Skill Quiz Assessment Answers

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

Latest Update on 30th December, 2021 by Certification Course Answers

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

  1. It makes the dot metacharacter match anything, including newline characters.
  2. It makes the pattern match uppercase letters.
  3. Both the pattern and subject string are treated as UTF-8.
  4. It inverts the greediness of the quantifiers in the pattern so they are not greedy by default.

Correct Answer:

  • Both the pattern and subject string are treated as UTF-8.

Latest Updates

No posts found in this category.