Whatever message this page gives is out now! Go check it out!
REMatch(reg_expression, string)Parameter | Description |
reg_expression | Regular expression for which to search. Case sensitive.For more information, see Using Regular Expressions in Functions in the Developing ColdFusion Applications. |
string | A string or a variable that contains one. String in which to search. |
<cfhttp url="https://www.adobe.com"
method="get" result="httpResp" timeout="120">
<cfhttpparam type="header" name="Content-Type" value="application/json" />
</cfhttp>
<cfscript>
// Find all the URLs in a web page retrieved via cfhttp
// The search is case sensitive
result = REMatch("https?://([-\w\.]+)+(:\d+)?(/([\w/_\.]*(\?\S+)?)?)?", httpResp.Filecontent);
writeDump(result)
</cfscript>