![]() |
![]() |
![]() |
||||
Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact us. |
![]() ![]() |
|
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
Thread Tools |
![]() |
#1 |
Confirmed User
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]/ |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#2 |
So Fucking Banned
Join Date: Jan 2005
Location: At My Desk
Posts: 2,904
|
Sounds like your going at it all wrong, if your string is 20050101-20050608
then ($begin_date, $end_date) = split ('-', $string); if ($string => $begin_date) && ($string <= $end_date) { do this |
![]() |
![]() ![]() ![]() ![]() ![]() |