View Single Post
Old 03-10-2005, 02:39 AM  
Zester
Confirmed User
 
Zester's Avatar
 
Industry Role:
Join Date: Jul 2003
Posts: 5,344
really fast regular expressoin question

how do I search a pattern for a numeric range?:

my $string="20050306"

I want to determine if 20050306 is between 20050101 and 20050608 with regex

using this:
$string=~m/[20050101-20050608]/
__________________
* Mainstream ? $65 per sale
* new male contraception

Last edited by Zester; 03-10-2005 at 02:40 AM..
Zester is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote