regex - Searching for a regular expression in Eclipse (finding all links without an onclick attribute) -
I am trying to create an appropriate regular expression to find all the anchors in my project with Eclipse File Search.
What I'm looking for:
& lt; A href = "some.url" onclick = "some onclic handlers" & gt;
What do I want to achieve, without getting any anchors all anchors and adding it when necessary.
Thank you for your help!
You can regex & lt; A href = "\ S +" ((?? Onclick).) *
. It will find all the links without the onclick pattern
Short description for the interesting part ((?? Onclick).) *
: ?! Onclick is a means it means that the regex engine will match if the word is not onclick in it. The surrounding
(
and .) *
tells the Regex engine, that onclick exegesis can be surrounded by any other character.
Comments
Post a Comment