• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Form Validation and Regexp

#3
[eluser]toopay[/eluser]
[quote author="ReptileReX" date="1311706107"]How can I use it? ...
But I don't know how to use it.[/quote]

[quote author="birderic" date="1311714118"]I am not sure why this validation function isn't documented in the user guide. Can anyone provide any insight?[/quote]

Mocking the original userguide...

Rule : regex_match
Parameter : YES
Description : Returns FALSE if the form element is not match with regular expression pattern.
Example : regex_match[/^SELECT ([^)]+) FROM ([^)]+)$/i]

(Above example will examinate, if valid SELECT statement present.)

What wrong with you guys? Code is as is. You see above function is just a shorthand to perform regular expression, and you can use it just the way you use preg_match().


Messages In This Thread
Form Validation and Regexp - by El Forum - 07-26-2011, 07:48 AM
Form Validation and Regexp - by El Forum - 07-26-2011, 10:01 AM
Form Validation and Regexp - by El Forum - 07-27-2011, 08:49 PM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.