CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Regular Expressions:
Find and Replace

 



smdhtv
New User

Nov 27, 2011, 5:21 PM

Post #1 of 2 (5838 views)
Find and Replace Can't Post

How do i find this code using a regular expression?
note that the url can consistently change so i need to use a wildcard. Thanks in advance.


Code
<div class="tweetmeme_button" style="float: right; margin-left: 10px;"> <a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fjumpinblack.com%2F2011%2F11%2F25%2Fdrake-and-rick-ross-you-only-live-once-ep-mixtape-2011-download%2F"><br /> <img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fjumpinblack.com%2F2011%2F11%2F25%2Fdrake-and-rick-ross-you-only-live-once-ep-mixtape-2011-download%2F&amp;source=jumpinblack1&amp;style=compact&amp;b=2" height="61" width="50" /><br /> </a> </div>



wickedxter
User

Nov 30, 2011, 2:57 PM

Post #2 of 2 (5675 views)
Re: [smdhtv] Find and Replace [In reply to] Can't Post

look in to this module

http://search.cpan.org/~podmaster/HTML-LinkExtractor-0.13/LinkExtractor.pm

it will extract all the links.

 
 


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives