Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: regexp everything except

by uksza (Abbot)
on Aug 08, 2005 at 08:27 UTC ( #481819=note: print w/replies, xml ) Need Help??


in reply to regexp everything except

Hello!
Hmm... Is it goot enougth?
#!/usr/bin/perl use strict; use warnings; my $zm = "ble ble book uff uff cover asdf asdfa ala book coverr"; $zm = join(' ', grep {/\b(book|cover)\b/} (split / /,$zm)); print $zm;
greets
uksza

Update (\b) thanks Zaxo

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://481819]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (4)
As of 2017-11-19 13:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In order to be able to say "I know Perl", you must have:













    Results (281 votes). Check out past polls.

    Notices?