Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save trycf/738c1db88c38d9c926ea3f6578f27795 to your computer and use it in GitHub Desktop.

Select an option

Save trycf/738c1db88c38d9c926ea3f6578f27795 to your computer and use it in GitHub Desktop.
TryCF Gist
<cfset local.originalTempString = rereplacenocase('how to win',"[^']\b(1|2|3|4|5|6|7|8|9|0|$|A|B|C|D|E|F|G|H|I|J|K|L|M|N|O|P|Q|R|S|T|U|V|W|X|Y|Z|about|after|all|also|an|and|another|any|are|as|at|be|because|been|before|being|between|both|but|by|came|can|come|could|did|do|does|each|else|for|from|get|got|has|had|he|have|her|here|him|himself|his|how|if|in|into|is|it|its|just|like|make|many|me|might|more|most|much|must|my|never|no|now|of|on|only|or|other|our|out|over|re|said|same|see|should|since|so|some|still|such|take|than|that|the|their|them|then|there|these|they|this|those|through|to|too|under|up|use|very|want|was|way|we|well|were|what|when|where|which|while|who|will|with|would|you|your)[^']\b"," ","ALL")> <cfset local.newTempString = rereplacenocase('how to win', "(^|[^'])\b(1|2|3|4|5|6|7|8|9|0|\$|A|B|C|D|E|F|G|H|I|J|K|L|M|N|O|P|Q|R|S|T|U|V|W|X|Y|Z|about|after|all|also|an|and|another|any|are|as|at|be|because|been|before|being|between|both|but|by|came|can|come|could|did|do|does|each|else|for|from|get|got|has|had|he|have|her|here|him|himself|his|how|if|in|into|is|it|its|just|like|make|many|me|might|more|most|much|must|my|never|no|now|of|on|only|or|other|our|out|over|re|said|same|see|should|since|so|some|still|such|take|than|that|the|their|them|then|there|these|they|this|those|through|to|too|under|up|use|very|want|was|way|we|well|were|what|when|where|which|while|who|will|with|would|you|your)\b(?!')", "\1 ", "ALL")> <cfdump var="#local.originalTempString#"> <cfdump var="#local.newTempString#">
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment