In this string:
"<0> <<1>> <2>> <3> <4>"
I want to match all instances of "<\d{1,2}>" except those i have escaped with an extra set of triangle brackets, eg i want to match 0,2,3,4 but not 1, eg:
"<0> <<1>> <2>> <3> <4>"
I want to do this in one single regular expression but the best i could get is:
(^|[^\<])\<(?<1>\d{1,2})>([^>]|$)
Which will match 0,3,4 but not 2, eg
"<0> <<1>> <2>> <3> <4>"
Does anyone know how this can be done with a single regular expression?