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

Re: Cleaning the Log

by fglock (Vicar)
on Sep 02, 2002 at 14:00 UTC ( [id://194579]=note: print w/replies, xml ) Need Help??


in reply to Cleaning the Log

Use  while() to repeat the search until all is done:

 perl -e '$a = "abcde{BS}{BS}f"; while($a =~ s/.{BS}//) {}; print $a;'

Replies are listed 'Best First'.
Re: Re: Cleaning the Log
by demerphq (Chancellor) on Sep 02, 2002 at 16:06 UTC
    Try this with these
    abcde{BS}{BS}{BS}{BS}{BS}{BS}f {BS}{BS}abcde{BS}{BS}{BS}{BS}{BS}c{BS}fat A{B}{BS}S}bout
    It should output:
    f fat A{BS}bout
    :-)

    Yves / DeMerphq
    ---
    Software Engineering is Programming when you can't. -- E. W. Dijkstra (RIP)

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (5)
As of 2025-03-24 19:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    When you first encountered Perl, which feature amazed you the most?










    Results (65 votes). Check out past polls.

    Notices?
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.