html - find all occurences between tag -


i trying find <br> instances in following string, in "categories" class:

<td>bla<br>bla</td><td class="categories">cat1<br>cat2<br>cat3</td> 

i realy new regex, , tried far, finds first <br> after cat1 , takes whole part in front of in result well...

(?>categories">).*?<br> 

edit: want find <br> occurences replace them comma. moment i'm using text editor (sublime text) achieve this...

any ideas?

why want use regex? trying validate?

http://en.wikipedia.org/wiki/regular_expression

if want find html elements using class variables want javascript or jquery

http://api.jquery.com/class-selector/

hope helps bit


Comments

Popular posts from this blog

php - Calling a template part from a post -

Firefox SVG shape not printing when it has stroke -

How to mention the localhost in android -