Quote:
Originally Posted by sherman
Personally, for added safety (especially if your forget to check the minimal matching!!) I would use something like:
Find what: <p class="h1">([^<]+)</p>
The only difference from a users point of view is that you are guaranteed that the regex will stop at the first < it comes across.
|
That will fail to match p elements that have embedded spans in them (or <i>, <b> etc.). It would just silently ignore the whole element.
You should really use "<p class="h1">(.+)</p>" with minimal matching.