It took quite a bit of research, but here's what those characters after regular expressions mean:
i: case-insensitive
c: effectively means return what doesn't match the expression
m: don't ignore whitespace differences
s: ignore multiple lines when using the match chars (*, ?, +, etc.)
x: allow whitespace and comments (for readability)
U: don't be greedy
I still can't figure out what U does (vB uses //siU everywhere), but those five are the common ones.
Today at 05:16 AM filburt1 said this in Post #1 (http://www.vbulletin.org/forum/showthread.php?postid=399617#post399617)
I still can't figure out what U does (vB uses //siU everywhere), but those five are the common ones.
U specifies "greediness". Roughly that is whether search returns the largest matched pair or the smallest, if there are more than 1 matches.
But isn't .? used for that (rather than .*)?
Say you have this text:
aaaaa
ccccccccccccc
dddddddddddd
eeeeeeeee
ffffffffffff
and you are trying to match chars between tags. Would your regular expression return:
dddddddddddd
or:
ccccccccccccc
[bbb]
dddddddddddd
eeeeeeeee
that is what greediness parameter specifies.
I know what it means, I mean that isn't that what the ? operator is used for rather than the * operator?