Sunday, 15 July 2012

Regex save all characters except between -



Regex save all characters except between < and > -

in regex, need maintain lines excepted characters between < , >

for illustration :

string1<string2>string3<string4>string5

result:

string1string3string5

i've tried doesn't work :

(?!(<[^>]*>))

does have idea?

thanks,

you can search regex:

<[^>]*>

and replace empty string.

regex demo

regex

No comments:

Post a Comment