I need to use a regexp to match segments of a URL which contains javascript. The string is in this format, and I need to match the querystring and the name of the URL, which are in bold.
I've come up with this regexp which works.
I'm not good when it comes to regexp, so is this ok or is there a better way to match this using regexp.
Thanks
Bob
Code:
<!--videocode--><a href="javascript:MyPop('[URL unfurl="true"]http://yoursite.com?[/URL][b]src=[URL unfurl="true"]http://www.bolt.com/audio/audio_player_mp3_branded.swf?type=application/x-shockwave-flash&pluginspage=http://www.macromedia.com/go/getflashplayer[/URL][/b]','PlayVid',360,350,1,1)">[b]Name of URL[/b]</a><!--videocode-->
Code:
$Txt =~ m!\<\!--videocode--\>.+?\?(.+?)\'.+?\>(.+?)\<\/a\>\<\!--videocode--\>!isg;
Thanks
Bob