Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re:^2 Remove repeated characters from a string

by Anonymous Monk
on May 13, 2004 at 14:55 UTC ( #353090=note: print w/replies, xml ) Need Help??


in reply to Re: Remove repeated characters from a string
in thread Remove repeated characters from a string

the duplicates are not nesscarly beside each other
where = wher Expressions = Expresion Finished = Finshed indicated = indcate

Replies are listed 'Best First'.
Re:^3 Remove repeated characters from a string
by knew (Monk) on May 13, 2004 at 15:12 UTC

    This will do that for you:

    1 while $string =~ s/(.)(.*)\1/$1$2/g
      This construction with the while loop made my day. Thanks a lot, sir knew! :D
Re:^3 Remove repeated characters from a string
by EdwardG (Vicar) on May 13, 2004 at 14:59 UTC

    If you had put more effort into your first question you would not now be explaining what you really meant.

     

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://353090]
help
Chatterbox?
[Discipulus]: ..or inspect the source code of the module
[makita]: I am doing this:
[makita]: my $sig = $wss->signature( schema => $wsdl, token => $token, sign_types=>'wsa: Action','wsa:To', 'wsu:Timestamp', 'wsa:MessageID',' SOAP-ENV:Body', signer=>DSIG_RSA_S HA1, public_key => $cert,
[Corion]: Oof, I haven't done much with signing SOAP requests. markov is usually somebody good to ask via mail ;)
[makita]: I need to create a SOAP call where are signed more types not only the body
[makita]: I am inspecting it second day :)
[makita]: Thanks
[Discipulus]: better to ask a full SOPW
erix self-flagellates with the cluebat
[erix]: indeed had to be( time make check-world ) > test_run2.output 2>&1

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (11)
As of 2017-03-23 08:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Should Pluto Get Its Planethood Back?



    Results (285 votes). Check out past polls.