3 Replies Latest reply on Jun 19, 2006 3:28 PM by MikerRoo

    IsValid regular expression question

    drforbin1970 Level 1
      Would one of the following validate this input? Space/blank giving me trouble. Have tried :space: and :blank: also. Shouldn't the /s detect a blank space in the string?

      <cfset y = " ">
      <cfoutput>
      <cfif IsValid("regular_expression", y, "[a-zA-Z0-9 ]+")>
      1)#y#
      </cfif>
      <cfif IsValid("regular_expression", y, "[a-zA-Z0-9\s]+")>
      2)#y#
      </cfif>
      </cfoutput>