Regular Expression for text field not working
Last Post 04-25-2012 01:45 PM by Stephen Nill. 3 Replies.
AddThis - Bookmarking and Sharing Button
Author Messages Not Resolved
Stephen NillUser is Offline
going with the flow
going with the flow
Posts:66
Avatar

--
04-22-2012 01:36 PM

    The UserGuide shows a sample RegEx for a simple word compare:

    \yes\b

    When I enter this example in the Regular Expression field for a text field, then enter "yes" in the field, the form validation returns the validation error messages.

    What am I doing wrong?

    Steve

    Stephen NillUser is Offline
    going with the flow
    going with the flow
    Posts:66
    Avatar

    --
    04-23-2012 06:54 AM
    Anyone?
    Chad NashUser is Offline
    Posts:5260
    Avatar

    --
    04-24-2012 05:41 PM
    Hi Stephen - I know we assisted you directly via Premium Support however I wanted to post the resolution here in case other users needed to use the same thing.

    Here is the regular expression you can use which allows for the word YES in mixed case: (?i:^YES$)

    Thanks!

    -Chad
    Stephen NillUser is Offline
    going with the flow
    going with the flow
    Posts:66
    Avatar

    --
    04-25-2012 01:45 PM
    Thanks Chad -- I hope this will be of help to others.

    One more thing that might be useful: If you want to force case rather than allow any case:

    (^YES$)

    This example would require upper case.

    To require lower case:

    (^yes$)

    Steve


    ---
  • film izle
  • 720 izle
  • film
  • sinema izle
  • film makinesi
  • T�rk�e dublaj film
  • film izle
  • film izle
  • baglan film izle
  • sinema izle
  • 1080 film izle
  • film mercegi