Re: Filters and sanitizing a regexp

From: Date: Thu, 25 Sep 2008 17:47:00 +0000
Subject: Re: Filters and sanitizing a regexp
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-280933@lists.php.net to get a copy of this message
by the by I'm using filter_var($string, FITER_VALIDATE_REGEXP, blah blah blah) ""Frank Stanovcak"" <blindspotpro@comcast.net> wrote in message news:E6.61.19781.54CCBD84@pb1.pair.com... > 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. >

« previous php.general (#280933) next »