0

How would I go out regexing all '>' characters that are not part of html. For example;

<h1> 10 > 9 </h1>

Only the '>' and inside the h1 would be selected.

joshy
  • 60
  • 8

1 Answers1

-1

I would just check for anything that is in between HTML tags.

"\<.*\>.*\<.*\<.*\>" That only picks out '<' characters isolated between the tags. Does that solve the whole problem or are you looking to take things from outside the tags?

BCza
  • 330
  • 2
  • 13
  • Forgot to escape the '<' and '>' characters. My bad. It's working now http://regex101.com/r/bK6qG5/1 – BCza Nov 26 '14 at 20:33