Regex Match whole word string in coldfusion
问题 Im trying this example first example keyword = "star"; myString = "The dog sniffed at the star fish and growled"; regEx = "\b"& keyword &"\b"; if (reFindNoCase(regEx, myString)) { writeOutput("found it"); } else { writeOutput("did not find it"); } Example output -> found it second example keyword = "star"; myString = "The dog sniffed at the .star fish and growled"; regEx = "\b"& keyword &"\b"; if (reFindNoCase(regEx, myString)) { writeOutput("found it"); } else { writeOutput("did not find it"