reFindNoCase() only returns the first match; it does not return an
array of all matches.

When you pass the returnsubexpressions=true argument, it does what it
says on the box: it returns an array of any subexpressions *of the
regex*.

http://livedocs.adobe.com/coldfusion/7/htmldocs/00000607.htm

Java regexes work the same way (not surprising as CF regex are just
wrapped up Java ones).

http://java.sun.com/j2se/1.4.2/docs/api/java/util/regex/Matcher.html

You'll need to do the looping approach as suggested, or a regex
replace of *everything else* in the string that doesn't match your
requirements.

--
Adam


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"cfaussie" group.
To post to this group, send email to cfaussie@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cfaussie?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to