Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: Replace zero-width grouping?

by diotalevi (Canon)
on May 06, 2003 at 20:17 UTC ( [id://256029]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    $_="17341234";
    1 while s/(.)(...)\1/A$2B/;
    print "$_\n"
    
  2. or download this
    $_="17341234";
    $r = 0;
    1 while substr($_,$r) =~ s/(.)(...)\1(?{local $r = pos() - 3})/A$2B/;
    print "$_\n"
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others cooling their heels in the Monastery: (4)
As of 2024-04-23 16:12 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found