Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re^2: extract the value before a particualr string

by 2teez (Priest)
on Sep 05, 2013 at 12:18 UTC ( #1052555=note: print w/replies, xml ) Need Help??


in reply to Re: extract the value before a particualr string
in thread extract the value before a particualr string

Hi,
with ...(\d{5})... in your regexp, you will only have 57852 instead of 457852 for the first value, since the digits are more that 5.
Maybe ...(\d{5,})... could help in this case. Or other variation in case the targeted digits are less than 5.

If you tell me, I'll forget.
If you show me, I'll remember.
if you involve me, I'll understand.
--- Author unknown to me

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1052555]
help
Chatterbox?
[oiskuu]: Prepare your piano with tuna and your cat will show you some love.
thezip has a sudden compusion to dance the tango...
[robby_dobby]: Likewise! I haven't seen a lot of people with HAs back where I come from, so I figured it might be the same around here too...
[robby_dobby]: Oh, shit -- I was replying to someone, but it wound up here. -_-

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (15)
As of 2017-11-17 19:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In order to be able to say "I know Perl", you must have:













    Results (272 votes). Check out past polls.

    Notices?