Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

a little regex trouble 1

Status
Not open for further replies.

pushyr

Programmer
Jul 2, 2007
159
GB
hi, im trying to match a line of text

from the code below i want to match this line...

Code:
var addy_text8756 = 'monique' + '@' + 'croydonebonyescort' + '.' + 'co' + '.' + 'uk';

i've tried using this preg_match '#var addy_text(.*?)$#', but it also takes all the preceding lines too

Code:
var addy8756 = 'monique' + '@';
addy8756 = addy8756 + 'croydonebonyescort' + '.' + 'co' + '.' + 'uk?subject=Referral%20from%20UK%20Independent%20Escorts%20List';
var addy_text8756 = 'monique' + '@' + 'croydonebonyescort' + '.' + 'co' + '.' + 'uk';
document.write( '<a ' + path + '\'' + prefix + ':' + addy8756 + '\'>' );
document.write( addy_text8756 );
document.write( '<\/a>' );
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top