Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
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 imbibing at the Monastery: (13)
As of 2015-07-06 23:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (85 votes), past polls