Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses

Re^3: More complicated regular expression?

by VinsWorldcom (Vicar)
on Jan 26, 2012 at 15:35 UTC ( #950131=note: print w/ replies, xml ) Need Help??

in reply to Re^2: More complicated regular expression?
in thread More complicated regular expression?

And I bet you're getting a space in front of the 74. Your "\d" at the end is matching a single digit character and since it's at the end of your parenthesis grabbing match, it's taking the last character - excluding it from your match.

Use JavaFan's regex above and all will be well.

Comment on Re^3: More complicated regular expression?
Replies are listed 'Best First'.
Re^4: More complicated regular expression?
by jaldama (Acolyte) on Jan 26, 2012 at 16:07 UTC
    You're right, and JavaFan's code worked perfect. Thanks a lot

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (12)
As of 2015-11-30 20:11 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (779 votes), past polls