|
Posted by Patrick Drouin on 12/17/07 19:52
Hello Michael,
> Nope. What's returned is the entire matched string and all parenthesized
> sub strings (if there are any), but not every single matching point from
> during the execution.
>
> The above is exactly what you told preg_match() to return:
Well OK, let me rephrase then, how can I tell PHP to match the
substrings. In my mind, (a+) means a, aa, aaa, ... and not only the
maximum string. I don't see how that behaviour is logical in any way.
Thanks,
Patrick
[Back to original message]
|