Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?

Re: Problem with regular expression

by MARVion (Novice)
on Feb 13, 2013 at 09:38 UTC ( #1018510=note: print w/replies, xml ) Need Help??

in reply to Problem with regular expression

Hi again,

well, with a litte change Utilitarian's Code works perfectly for me.


However, I would appreciate it, if you could explain this section to me, as I'm not that familiar with regular expressions but for sure I want to learn to use them!




Replies are listed 'Best First'.
Re^2: Problem with regular expression
by Utilitarian (Vicar) on Feb 13, 2013 at 13:24 UTC
    oops, I missed the one with a colon :(
    (?: # begin non capturing group CR|ID # alternation accepts either pattern group 'CR' or 'ID' )? # group is optional

    print "Good ",qw(night morning afternoon evening)[(localtime)[2]/6]," fellow monks."

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1018510]
[stonecolddevin]: at best, from what i've seen, his knowledge is accurate up to maybe 2002. the sheer volume of words is mostly worthy of a downvote in most cases though i think
[erix]: ITYM Schwartzian Transform :P
[erix]: hey planetscape :)
[planetscape]: howdy stonecolddevin, erix
[Sinistral]: eric Aye. I thought I typed that wrong. All hail Randall! I listen to him on FLOSS Weekly
[Discipulus]: i think his vacuus, trombon like, absence of meaning, joined with a ostentatious style, after many years irritates the most
[erix]: easy to get wrong -- I guess that was sund's point, too :P
[Discipulus]: planetscape welcome back! (or is well comeback?)
[Discipulus]: fore every 2 good old monks that come back, we will accept 1 clinical

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (8)
As of 2017-06-22 21:00 GMT
Find Nodes?
    Voting Booth?
    How many monitors do you use while coding?

    Results (530 votes). Check out past polls.