hmm. I'm not sure if that will work for me as I don't want to try to alter
the text. I just want to ignore ";" within quotes hence why doing a look
ahead / look behind may be an answer.
I will keep your approach in mind though as it could work if I have to go
down that road.
On Thu, Jul 10, 2008 at 8:29 AM, Peter Boughton <[EMAIL PROTECTED]> wrote:
> > I am trying to find ";" ONLY at the end of a string and not within (like
> within single or
> > double quotes).
>
> > I don't think so as we also want to catch multiple variables being set to
> one line (should have put this in the original post):
> > var1 = 1; var2 = 2;
>
> So end of string is irrelevant?
> What you actually want to find is all semi-colons excluding those within
> quotes?
>
> In which case, just replace/remove quoted values first and then search
> for any semi-colons.
>
> Text = REReplace ( Text , '"([^"]|"")+"' , '{quotedstring}' , 'all')
>
> (and same again with single/double inverted)
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j
Archive: http://www.houseoffusion.com/groups/RegEx/message.cfm/messageid:1153
Subscription: http://www.houseoffusion.com/groups/RegEx/subscribe.cfm
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.21