4 Replies Latest reply on Nov 15, 2012 1:24 PM by umuayo

    Regex to find word

    umuayo Level 1

      Anyone know the Regex to find if a variable contains a word eg this var has "Surplus Percentage Total in the Amount of $2000.00"

      So I need to know it contains the word 'Percentage'?

      Here is my code

      cfset xyz='Surplus Percentage Total in the Amount of $2000.00'

      cfset foundword= REFind('Percentage', xyz)

      The above is not working