Re: matching date
- From: "Dr.Ruud" <rvtol+news@xxxxxxxxxxxx>
- Date: Thu, 28 Sep 2006 16:01:00 +0200
joez311@xxxxxxxxx schreef:
Can someone help me out with the following pattern match? I want to
match on the date went its formated like mm/dd/yy. I was trying:
/[0,1][0-9]/[0-3][0-9]/[0-9[0-9]/
but my match doesn't seam to work as expected. I think its because of
the / used to split the feilds. Could some one show me the correct way
to pattern match on this?
Thanks,
Zim
I see a comma that probably shouldn't be there, and a missing "]", and
unescaped slashes, which leads to:
m~[01][0-9]/[0-3][0-9]/[0-9][0-9]~
Check out Regexp::Common
http://search.cpan.org/search?module=Regexp::Common
--
Affijn, Ruud
"Gewoon is een tijger."
.
- Follow-Ups:
- Re: matching date
- From: it_says_BALLS_on_your forehead
- Re: matching date
- References:
- matching date
- From: joez311
- matching date
- Prev by Date: Re: Questions about Inline::C
- Next by Date: Re: Deleting characters from the end of each line
- Previous by thread: Re: matching date
- Next by thread: Re: matching date
- Index(es):
Relevant Pages
|