Below are revisions for this snippet.

Regex Match into Array





Syndication

Revision Revison 1
Below is a function written in ColdFusion MX that will return an array containing all matches found when running a regex against a particular string. Each array item is a structure with the match, the starting character position, the ending character position, and an array of any
sub-pattern captures.