[Regex]is this queston too difficult for you too?

jameswkh

Newbie
Joined
Nov 11, 2015
Messages
18
Reaction score
0
Hi all,

I amm writing something using REGEX.


i need to match all <a href.....>XXXXXXXXXXXXX</a> where XXXXXXXXXXXXX do not contain </a> ,

that means to stop matching when the first </a> appears.

I tried a lot but till cannot make it, can anyone think of a solution?

Thank you guys!
 
Code:
[FONT=Consolas]/<a[^>]*>([^<]+)</a>/g[/FONT]

Disclaimer: I found this by googling "Regex for anchor tags" and clicking the first StackOverflow link.

You can get answers for most of the programming questions by doing this.
 
Last edited:
Back
Top