Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: To remove a certain pattern that is followed by numbers

by jwkrahn (Abbot)
on Jun 29, 2009 at 09:10 UTC ( [id://775594]=note: print w/replies, xml ) Need Help??


in reply to To remove a certain pattern that is followed by numbers

$ perl -le' $_ = "ACER ASPIRE SERIES AS1954-526352BN"; print; s/AS(?=\d)//g; print; ' ACER ASPIRE SERIES AS1954-526352BN ACER ASPIRE SERIES 1954-526352BN

Replies are listed 'Best First'.
Re^2: To remove a certain pattern that is followed by numbers
by Anonymous Monk on Jun 29, 2009 at 13:07 UTC
    Thanks a lot, Sir.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others contemplating the Monastery: (3)
As of 2026-02-14 20:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.