CodeIgniter Forums
form validation regex_match not working - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: form validation regex_match not working (/showthread.php?tid=52476)



form validation regex_match not working - El Forum - 06-12-2012

[eluser]cyberjunkie[/eluser]
I'm using the following regex

Code:
regex_match[([01]?[0-9]|2[0-3]):00:00]

when setting validation rules and get

Quote:Message: preg_match() [function.preg-match]: No ending matching delimiter ')' found

Filename: libraries/Form_validation.php

Line Number: 911

I'm not very experienced with regex, why am I getting the error? Please help.