Quote:
Originally Posted by Terisa de morgan
The problem is that this search goes wrong if I have something like:
Code:
<div><p class="pp">
|
The ? after the parenthesis is being interpreted as a normal character because there isn't a "*" matching expression immediately in front of it (the parenthesis intervenes). I assume you are trying to make the * not greedy. That is not required because the NOT ^ character set is already not greedy, stopping at the first ">".
If for some reason you really want to make the "[^>]*" not greedy then you must put the question immediately after the star, as in "[^>]*?"