Quote:
Originally Posted by vijer
Found the answer.
(<a id=\"page)(.*:?)(\"></a>)
|
What's the colon for?
Are there really optional colons in the page number that need to be accounted for?
I'd probably use something like:
Code:
<a id="page\d+"></a>
or
Code:
<a id="page[^>]+"></a>
It's probably not an issue here, but (.*?) is quite greedy and can cause problems when trying to search html. [^>]* or [^>]+ are typically safer if you need to match multiple unknown characters but need to guarantee it never spans multiple tags.