Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re: The first match affect the following of the regex

by grep (Monsignor)
on Mar 30, 2008 at 18:51 UTC ( [id://677369]=note: print w/replies, xml ) Need Help??


in reply to The first match affect the following of the regex

I have two comments:
  1. Yes you most likely want character classes, but use them in some splits. This screams split, you are taking a string and splitting it into different pieces.
  2. Why aren't you using a module for this? Data::Calc and DateTimeX::Easy are both excellent choices. Using one of them you're guaranteed that either:
    • The module can parse the string - you will get either a date object or and array of the date tokens.
    • If it can't parse it - you get an error.
grep
One dead unjugged rabbit fish later...
  • Comment on Re: The first match affect the following of the regex

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://677369]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others learning in the Monastery: (6)
As of 2024-04-24 09:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found