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
Post a Comment