Quote:
Originally Posted by Jellby
But it would also find it between two <i></i> blocks, wouldn't it?
<i>foo</i> τον <i>bar</i>
Even with non-greedy modifier, the asterisk matches as many as needed to make the whole pattern match.
|
You are absolutely right!
BTW: Mine expression also isn't fool-proof as it would wrongly handle invalid HTML:
<i>
foo</i> τον
bar</i>