djr33
06-19-2010, 02:53 PM
http://www.php.net/manual/en/function.preg-replace.php#77255
That's the example I am using (adapted some).
I don't now what the /Ui means after the regex. I am guessing it's some sort of parameter.
From testing it looks like it makes it "not greedy" so it finds the shortest string possible rather than finding the farthest instances to match. Removing it makes it take a longer string, rather than the shortest possible.
Is this correct?
And is there a list of these parameters somewhere?
I looked around but couldn't find a reference on this specifically.
Thanks...
That's the example I am using (adapted some).
I don't now what the /Ui means after the regex. I am guessing it's some sort of parameter.
From testing it looks like it makes it "not greedy" so it finds the shortest string possible rather than finding the farthest instances to match. Removing it makes it take a longer string, rather than the shortest possible.
Is this correct?
And is there a list of these parameters somewhere?
I looked around but couldn't find a reference on this specifically.
Thanks...