Link to home
Start Free TrialLog in
Avatar of BendOverIGotYourBack
BendOverIGotYourBack

asked on

Help with Regular Expression

Building upon this question: https://www.experts-exchange.com/questions/22444752/Help-parsing-BBCode.html

How would I go about modifying the Regular Expression below to only find this match

<a href="www.yahoo.com">Yahoo.com</a>

But not find this match or any other html that includes extra stuff other than <a href="">Text</a>

<a href="#" onClick="Blah blah">Yahoo.com</a>

Set regex=NewRegEXP
regex.Global=true
regex.IgnoreCase=true
regex.Pattern=<a href=""(.*?)"">(.*?)</a>"
regex.Global=true

ASKER CERTIFIED SOLUTION
Avatar of NicksonKoh
NicksonKoh
Flag of Singapore image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of BendOverIGotYourBack
BendOverIGotYourBack

ASKER

Nice, thanks!