Custom form validation rule |
09-05-2015, 10:07 AM
(This post was last modified: 09-05-2015, 10:24 AM by jLinux. Edit Reason: PHP code inserted )
Im going to use something like table.column:existing_value instead of table.column|existing_value, that should work.
Quick regex question. Anyone know how to use preg_match to match for both of those? And just check if the third matched value is there? Im having trouble with it, im not a Regex ninja.. PHP Code: <?php Result: Quote:Successfuly matched string: table.column What im looking for is: Quote:Successfuly matched string: table.column I know I can use the question mark to match for the last string or not, but im having issues including the : in that condition.. What I have now works, its just too complicated when REGEX can get rid of some code.. PHP Code: <?php defined('BASEPATH') OR exit('No direct script access allowed'); Thanks |
Messages In This Thread |
Custom form validation rule - by jLinux - 08-29-2015, 11:20 AM
RE: Custom form validation rule - by jLinux - 08-30-2015, 09:00 AM
RE: Custom form validation rule - by CroNiX - 08-30-2015, 09:02 AM
RE: Custom form validation rule - by jLinux - 08-30-2015, 10:14 AM
RE: Custom form validation rule - by mwhitney - 08-31-2015, 09:35 AM
RE: Custom form validation rule - by jLinux - 09-05-2015, 10:07 AM
RE: Custom form validation rule - by mwhitney - 09-08-2015, 07:17 AM
|