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?
- 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.
Correct Answer:
- Both the pattern and subject string are treated as UTF-8.