I'm not sure if this will help, but try nesting your functions the other way
so the RegEx gets applied before the HTMLCodeFormat, or if that doesn't
work, do it the other way :OP

Ade

-----Original Message-----
From: Michael Tangorre [mailto:[EMAIL PROTECTED]
Sent: 05 June 2003 13:03
To: CF-Talk
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

This list and all House of Fusion resources hosted by CFHosting.com. The place for 
dependable ColdFusion Hosting.
http://www.cfhosting.com

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

Reply via email to