Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re^2: Removing digits until you see | in a string

by Animator (Hermit)
on Jan 08, 2007 at 12:04 UTC ( [id://593518]=note: print w/replies, xml ) Need Help??


in reply to Re: Removing digits until you see | in a string
in thread Removing digits until you see | in a string

That solution is wrong.

What if the string contains a newline? Or multiple newlines? Anything that follows after the newline will not be removed.

I could suggest using s/...//s but I'm not going to do that. This code will be slower then it has to be - and it doesn't give the information you want. It just starts removing text from a | until a newline.

My suggestion is the same as ysth's: Re: Removing digits until you see | in a string

  • Comment on Re^2: Removing digits until you see | in a string

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others scrutinizing the Monastery: (5)
As of 2024-04-19 01:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found