Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: regexp - repeatedly delete words from end of string with words in alternation

by gamache (Friar)
on Nov 06, 2007 at 15:58 UTC ( #649241=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    while (s/\s*$RE$//) {}
    
  2. or download this
    s/(\s*$RE)*$//;
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (4)
As of 2020-07-08 15:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?