Uses a regular expression (RE) to search a string for a pattern, starting from a specified position.
reMatch(reg_expression, string)
→ returns array
Extracts numbers from a string and returns them as an array
serializeJSON( reMatch("[0-9]+", "1 way to extract any number like 45, 38") )
Expected Result: ["1","45","38"]
Signup for cfbreak
to stay updated on the latest news from the ColdFusion / CFML community. One email, every friday.