Skip to content

Instantly share code, notes, and snippets.

@bennadel
Created March 24, 2014 23:53
Regular Expression Finds vs. String Finds
<cfif (
(strValue.IndexOf( "Sarah" ) GTE 0) OR
(strValue.IndexOf( "Libby" ) GTE 0) OR
(strValue.IndexOf( "Cindy" ) GTE 0) OR
(strValue.IndexOf( "Katie" ) GTE 0) OR
(strValue.IndexOf( "Julia" ) GTE 0)
)>
<!--- Code here. --->
</cfif>
<cfif REFind( "Sarah|Libby|Cindy|Katie|Julia", strValue )>
<!--- Code here. --->
</cfif>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment