Meaning of Regex modifiers in pattern - "s", "m", "i", "U"

Would you please explain the functions of regex modifiers s, m, i and U ? What they do in the pattern ?
09 Jun 2019 at 06:23 PM
0give a positive ratinggive a negative ratingshow more
onefiveonefive
Hi,

s - pattern also matches newlines

m - used to perform a multiline match

i - pattern matches both upper and lower case letters, case insensitive

U - inverts the "greediness" of matching
14 Jun 2019 at 02:36 PM
0give a positive ratinggive a negative ratingshow more
TimTim
Share on FacebookShare on TwitterShare on LinkedInSend email
Follow us on Facebook
2022 AnswerTabsTermsContact us