Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: The first match affect the following of the regex

by grep (Monsignor)
on Mar 30, 2008 at 18:51 UTC ( #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
Node Status?
node history
Node Type: note [id://677369]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (7)
As of 2014-07-13 14:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    When choosing user names for websites, I prefer to use:








    Results (249 votes), past polls