homepage Welcome to WebmasterWorld Guest from 54.234.59.94
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Visit PubCon.com
Home / Forums Index / Code, Content, and Presentation / Perl Server Side CGI Scripting
Forum Library, Charter, Moderators: coopster & jatar k & phranque

Perl Server Side CGI Scripting Forum

    
Little search and replace question.
Jesse_Smith




msg:4178336
 3:20 am on Jul 29, 2010 (gmt 0)

$url =~ s*<p class="largefont">View Full Version : <a href="http://www.domain.com/files.php\?t=([^&]+?)">([^&]+?)\&quot\;([^&]+?)</a></p>**g;

Is there any way to have just one little ([^&]+?) like code instead of...

([^&]+?)\&quot\;([^&]+?)

and having a search and replace for both links with &quot; and with out?

 

janharders




msg:4178395
 7:22 am on Jul 29, 2010 (gmt 0)

([^<]+?)
should do the trick.

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / Perl Server Side CGI Scripting
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved