Copy link to clipboard
Copied
This question was posted in response to the following article: http://help.adobe.com/en_US/ColdFusion/10.0/CFMLRef/WSc3ff6d0ea77859461172e0811cbec22c24-6e35.html
Copy link to clipboard
Copied
In the description it says ", starting from a specified position". This is not the case. There is no parameter for starting position.
Copy link to clipboard
Copied
Although I've never tried, my guess is that there is a missing optional parameter in the doc: [start], similar to reFind.
Copy link to clipboard
Copied
Although I've never tried, my guess is that there is a missing optional parameter in the doc: [start], similar to reFind.
Nope. The docs are just wrong.
--
Adam
Copy link to clipboard
Copied
If you use 3 parameters like this in ColdFusion 10
<cfset matches = rematch('[0-9]{4}', testString, 2)>
<cfdump var="#matches#">
you will get the error message, "The function takes 2 parameter". Funnily enough, the message itself contains an error.