Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Mark Knochen
March 29, 2006, 9:37 pm
rate this thread
You should have examined the match that was found, and then you would
have seen: that '.*' is greedy. This means that the first 'linkto:' is
found and the the regular expression machine tries to use as many
characters as it can before it encounters the next one, which is the
**last** ']', hence only one match.
To get your three matches, you could replace '.*' with '.*?' which
makes the * non greedy.
Csaba Gabor from Vienna