Filters and sanitizing a regexp

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Is it possible to use the php filter function to sanitize a regular 
expression such as to return just the date part of a string that may be 
passed by an nonobservant user?

"#\d\d/\d\d/\d\d\d\d#"

input would be something like
as02/05/2008df

I want to use the filter to give me just the date should some oaf not leave 
the date field as just digits. 



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux