Regards

Steve Onnis
Domain Concept Designs
+61 422 337 685
+61 3 9444 7504

http://www.domainconceptdesigns.com <http://www.domainconceptdesigns.com>

("If you think it can't be done, you haven't asked me!") - Steve Onnis





-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Mark
Stanton
Sent: Monday, January 06, 2003 6:17 PM
To: CFAussie Mailing List
Subject: [cfaussie] Regexp - too hungry


Happy New Year all!!

Just a quick one. If you have a regular expression that search for a
specific starting string, followed by some variable data and then followed
by another specific ending string, how do you make it grab the first end
string rather than the last one.

Then context is the extended replace in homesite.


EG:
On a page that has a number of similar javascripts, the following regexp

javascript:if\(confirm .* window\.location=\'

is currently finding the first instance of "javascript:if(confirm" on the
page and the very last instance of window.location='. IE. its matching most
of the document where as I want it to match as little as possible,

Cheers

Mark


---
You are currently subscribed to cfaussie as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]

MX Downunder AsiaPac DevCon - http://mxdu.com/


---
You are currently subscribed to cfaussie as: [email protected]
To unsubscribe send a blank email to [EMAIL PROTECTED]

MX Downunder AsiaPac DevCon - http://mxdu.com/

Reply via email to