Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re^2: Applying a regex to part of a string

by holdyourhorses (Monk)
on Aug 18, 2005 at 14:00 UTC ( [id://484774]=note: print w/replies, xml ) Need Help??


in reply to Re: Applying a regex to part of a string
in thread Applying a regex to part of a string

That's already what I am doing in my first method. I was using a variable to make the example code look better. I should have mentioned that in real world cases I apply "substr" to the original string on the fly.

Thanks anyway.

  • Comment on Re^2: Applying a regex to part of a string

Replies are listed 'Best First'.
Re^3: Applying a regex to part of a string
by Roger (Parson) on Aug 18, 2005 at 23:24 UTC
    Your substr is missing the +1 bit. It would only match between character positions 11 and 29, not 30.

      That's right. I missed that point. Fixed now.

      Thanks again.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (7)
As of 2024-04-19 14:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found