I am trying to match everything in an anchor tag, except the target
property. I have this regex:
<(/?)a([^>]*)target="[^"]*"([^>]*)>
Which is working well for the opening <a>nchor tag. But it does not
match the closing tag because a closing tag does not have a target
property. How would I make the entire 'target="[^"]" in the middle
optional?
I tried wrapping it in parenthesis and putting a '?' after it, but that
does not seem to work.
<(/?)a([^>]*)(target="[^"]*")?([^>]*)>
Thank You
Ian
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;fArchive:
http://www.houseoffusion.com/groups/regex/message.cfm/messageid:1209Subscription:
http://www.houseoffusion.com/groups/regex/subscribe.cfmUnsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=17837.14401.21