Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: regex to remove a word from string

by Laurent_R (Canon)
on Dec 04, 2014 at 07:51 UTC ( [id://1109219]=note: print w/replies, xml ) Need Help??


in reply to regex to remove a word from string

Your question is far too general. The answer could very well be davido's solution if your intent is only to remove the litteral unwanted string, or it could be more complex if what you want to remove can take other values. Si you should decribe as precisely as possible the characteristics of what you want to remove (and/or what you want to keep) from the original string. A single example is almost never sufficient to describe what a regex should do, you need to give clear rules to explain what needs to ke kept and what should be remoived.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (2)
As of 2024-04-20 03:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found