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

Re: Duplicate Words

by ok (Beadle)
on Apr 20, 2001 at 07:51 UTC ( #74069=note: print w/replies, xml ) Need Help??

in reply to Duplicate Words

I think sed s/(\b\w+?\b)\s+\1/$1/g would be even better. Screw Perl! Blah...

Update: It's fun to cut and paste regexps without thinking about whether they fit the new context. Yee!

Replies are listed 'Best First'.
(tye)Re: Duplicate Words
by tye (Sage) on Apr 20, 2001 at 17:51 UTC

    FYI, nearly all of the constructs you use in that regex aren't supported by sed. If you are going to recommend not using Perl, then you also have to not use Perl-specific regex features. q-:

            - tye (but my friends call me "Tye")

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (10)
As of 2018-07-19 16:04 GMT
Find Nodes?
    Voting Booth?
    It has been suggested to rename Perl 6 in order to boost its marketing potential. Which name would you prefer?

    Results (411 votes). Check out past polls.