This email is to be read subject to the disclaimer below.
Hi Mark, happy new year!
I don't know how to negate a long expression like "javascript:
if\(confirm", which is what you would need, but I assume you have these
strings in a href, surrounded by double quotes. If this is the case try:
javascript:if\(confirm[^"]*window\.location=\'
Hope this helps, I don't know how to negate longer expressions. Maybe this
would work too, but I'm just guessing:
javascript:if\(confirm[^(javascript:if\(confirm)]*window\.location=\'
Viktor Radnai
Web Developer, National E-Commerce, Ernst & Young
Direct: +61 2 9248 4361
"Mark Stanton"
<[EMAIL PROTECTED]> To: "CFAussie Mailing
List" <[EMAIL PROTECTED]>
Sent by: cc:
[EMAIL PROTECTED] Subject: [cfaussie]
Regexp - too hungry
mon.com.au
06/01/2003 06:17 PM
Please respond to "CFAussie
Mailing List"
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/
--------------------
NOTICE - This communication contains information which is confidential and
the copyright of Ernst & Young or a third party.
If you are not the intended recipient of this communication please delete
and destroy all copies and telephone Ernst & Young on 1800 655 717
immediately. If you are the intended recipient of this communication you
should not copy, disclose or distribute this communication without the
authority of Ernst & Young.
Any views expressed in this Communication are those of the individual
sender, except where the sender specifically states them to be the views of
Ernst & Young.
Except as required at law, Ernst & Young does not represent, warrant and/or
guarantee that the integrity of this communication has been maintained nor
that the communication is free of errors, virus, interception or
interference.
Liability limited by the Accountants Scheme, approved under the
Professional Standards Act 1994 (NSW)
--------------------
---
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/