Quote:
Originally Posted by Doitsu
The following very simple regex will find one occurrence of "tov" at the beginning, at the end and in the middle of a string of text enclosed by <i></i> tags:
Find:<i>(.*?)τον(.*?)</i>
Replace:<i>\1του\2</i>
|
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.