Perfect. Works great now.
Matthew, thanks for clarifying my erroroneous format  and thanks to Ade for
the tip as well. Both were needed!

TA,

Mike

----- Original Message ----- 
From: "Matthew Walker" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Thursday, June 05, 2003 8:09 AM
Subject: Re: Regex Help


> ^ is start of string, $ is end of string, so it looks like you've got
these
> aroung the wrong way. Secondly, you want everything between but not
> including the <%--- ---%> right? So put the parentheses *inside*
>
> How about this:
> result = REreplace(cfhttp.fileContent,"^.*<%---(.*)---%>.*$","\1")
>
>
> Regards,
> Matthew Walker
> Electric Sheep Web
> http://www.electricsheep.co.nz/
>
> ----- Original Message ----- 
> From: "Michael Tangorre" <[EMAIL PROTECTED]>
> To: "CF-Talk" <[EMAIL PROTECTED]>
> Sent: Friday, June 06, 2003 12:02 AM
> Subject: Regex Help
>
>
> > Good Morning.
> >
> > A day or so ao I got some help with a regular expression and when I
wrote
> a sample input string to match against it worked fine, howvever I failed
to
> realize I have to HTMLCodeFormat the results from the http post in order
to
> get a string to use. The Regex does not seem to work with the
> HTMLCodeFormat(cfhhtp.fileContent) string.... I was testing with a simple
> string I came up with to mimic the results form the post. Anyways, here is
> the string returned from the http post:
> >
> >
>
<html><head><title>TransGatewayAPI</title></head><body><%---StartParseRC=0|S
> topParse---%></body></html>
> > This is the regex I was trying to use:result =
> REreplace(cfhttp.fileContent,"$.*(<%---.*---%>).*^","\1")nothing is found
> though. What I am trying to do is strip out everything between the
following
> two substrings:<%--- and ---%> which would results
> in:StartParseRC=0|StopParseCan anyone assist or point out what I am doing
> wrong? I am new to regex, so bear with me :-)Thanks,
> >
> > Mike
> >
> 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq

Get the mailserver that powers this list at 
http://www.coolfusion.com

                                Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
                                

Reply via email to