Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: Re: Re: Text elimination within a string

by alfie (Pilgrim)
on Apr 09, 2001 at 11:46 UTC ( #70943=note: print w/replies, xml ) Need Help??


in reply to Re: Re: Text elimination within a string
in thread Text elimination within a string

Add a g as option to your s/// and might be right. Still you should consider using the following regex that doesn't use .*:
s/\([^)]\)//g;
Which will strip off all braced strings, including the braces.
--
Alfie

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (5)
As of 2022-05-19 16:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you prefer to work remotely?



    Results (72 votes). Check out past polls.

    Notices?