Validating forms with regex in codeigniter

Posted by Alex on Stack Overflow See other posts from Stack Overflow or by Alex
Published on 2010-06-11T01:29:21Z Indexed on 2010/06/11 1:32 UTC
Read the original article Hit count: 232

Filed under:
|
|

How can I validate a form using regex in codeiginiter. I'd like to check the input against:

^([0-1][0-9]|[2][0-3]):([0-5][0-9])$

I'm assuming the best way is in some sort of callback. I tried a bunch of ideas on the web but I can't seem to get any working.

© Stack Overflow or respective owner

Related posts about php

Related posts about regex