Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris

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 the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (5)
As of 2018-10-20 14:34 GMT
Find Nodes?
    Voting Booth?
    When I need money for a bigger acquisition, I usually ...

    Results (118 votes). Check out past polls.