0
How to match regex with string?
Enthusiast
,
/t5/coldfusion-discussions/how-to-match-regex-with-string/td-p/7650865
Oct 01, 2015
Oct 01, 2015
Copy link to clipboard
Copied
I'm following this instruction, ColdFusion Help | REMatchNoCase. So I tried this:
sites = "training-me";
result = REMatchNoCase("/training/", sites);
writeOutput(#result#);
But I kept getting Internal Server Error. Any help is much appreciated.
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
Community Expert
,
LATEST
/t5/coldfusion-discussions/how-to-match-regex-with-string/m-p/7650866#M170034
Oct 02, 2015
Oct 02, 2015
Copy link to clipboard
Copied
WriteOutput is for displaying simple values. The documentation you refer to says that the function, reMatchNoCase, returns an array. So you should should use writeDump instead.
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more

