Welcome to WebmasterWorld Guest from 54.158.237.30

Forum Moderators: coopster & jatar k & phranque

Message Too Old, No Replies

Little search and replace question.

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

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Feb 5, 2003
posts:807
votes: 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?
7:22 am on July 29, 2010 (gmt 0)

Senior Member

WebmasterWorld Senior Member 5+ Year Member

joined:May 31, 2008
posts:661
votes: 0


([^<]+?)

should do the trick.