Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

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

by AnomalousMonk (Bishop)
on May 26, 2021 at 13:27 UTC ( #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? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (2)
As of 2022-05-26 01:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you prefer to work remotely?



    Results (91 votes). Check out past polls.

    Notices?