Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: Regexp substitution on variable-length ranges with embedded code?

by AnomalousMonk (Archbishop)
on May 26, 2021 at 13:27 UTC ( [id://11133062]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    $seq =~ s/
        (\d+):(\d+):(\d+)
    ...
        (\1):(\2):(?{1+($3|$6)})
    
        /$1:$2:$3-$6/xg;
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chanting in the Monastery: (3)
As of 2024-04-20 03:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found