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|StopParse---%></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 Signup for the Fusion Authority news alert and keep up with the latest news in ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4