I am trying to find all <br>
instances in the following string, but only in the "categories" class:
<td>bla<br>bla</td><td class="categories">cat1<br>cat2<br>cat3</td>
I am realy new to regex, and this is what I tried so far, but it only finds the first <br>
after cat1 and takes the whole part in front of it in the result as well...
(?>categories">).*?<br>
EDIT: I want to find all <br>
occurences to replace them with a comma. For the moment I'm using a text editor (Sublime Text) to achieve this...
` instances, what do you want to do with them? Count them, insert text after them...? – Richard Ev Jul 18 '13 at 13:14