Skip to main content
deleted 8 characters in body
Source Link
ovs
  • 60.6k
  • 3
  • 47
  • 161

Retina, 129 119119 112 bytes

\d+
$* 
 
¶$`c$'$' ¶$`a $'$' 
m`$
/
  /$
_/
^.¶

c a( {4}   )*/
c $#1a$#1/
\d+
$*a$*
c1
/ a  
 ( {4}   )*/
c$#1$#1/
\d+
$*bb$*
a1
 |  
b
/ c 
m`ca /$
ca/
ca
\

Try it online!Try it online!

Retina, 129 119 bytes

\d+
$* 
 
¶$`c$'$' 
m`$
/
 /$
_/
^.¶

c ( {4})*/
c $#1/
\d+
$*a
c   ( {4})*/
c$#1/
\d+
$*bb
a
 |  
b
/ c 
m`c /$
c/
c
\

Try it online!

Retina, 129 119 112 bytes

\d+
$* 
 
¶$`a $'$' 
m`$
/
  /$
_/
^.¶

a(    )*/
a$#1/
\d+
$*
1
/ a  
 (    )*/
$#1/
\d+
$*
1
 |  
a /
a/
a
\

Try it online!

deleted 55 characters in body
Source Link
ovs
  • 60.6k
  • 3
  • 47
  • 161

Retina, 129129 119 bytes

\d+
$* c /$* 
^  
¶$`c$'$' 
+`^( *) c( +/)m`$
$1c  $2¶$&/
 /$
_/
^.¶

c ( {4})*/
c $#1/
\d+
$*a
c   ( {4})*/
c$#1/
\d+
$*bb
a
 |   
b
/ c c 
m`c /$
c/
c
\

Try it online!Try it online!

Retina, 129 bytes

\d+
$* c /
^ 

+`^( *) c( +/)
$1c  $2¶$&
 /$
_/
c ( {4})*/
c $#1/
\d+
$*a
c   ( {4})*/
c$#1/
\d+
$*bb
a
 |  
b
/ c 
m`c /$
c/
c
\

Try it online!

Retina, 129 119 bytes

\d+
$* 
 
¶$`c$'$' 
m`$
/
 /$
_/
^.¶

c ( {4})*/
c $#1/
\d+
$*a
c   ( {4})*/
c$#1/
\d+
$*bb
a
 |  
b
/ c 
m`c /$
c/
c
\

Try it online!

deleted 4 characters in body
Source Link
ovs
  • 60.6k
  • 3
  • 47
  • 161

Retina, 130129 bytes

\d+
$* c /
^ 

+`^( *) c( +/)
$1c  $2¶$&
 /$
_/
c ( {4})*/
c $#1/
\d+
$*a
c   ( {4})*/
c$#1/
\d+
$*bb
a
 |  
b(?=b)
/ c 
b
/m`c /$
c/
c
\

Try it online!Try it online!

Retina, 130 bytes

\d+
$* c /
^ 

+`^( *) c( +/)
$1c  $2¶$&
 /$
_/
c ( {4})*/
c $#1/
\d+
$*a
c   ( {4})*/
c$#1/
\d+
$*bb
a
 |  
b(?=b)
/ c 
b
/ c
c
\

Try it online!

Retina, 129 bytes

\d+
$* c /
^ 

+`^( *) c( +/)
$1c  $2¶$&
 /$
_/
c ( {4})*/
c $#1/
\d+
$*a
c   ( {4})*/
c$#1/
\d+
$*bb
a
 |  
b
/ c 
m`c /$
c/
c
\

Try it online!

Source Link
ovs
  • 60.6k
  • 3
  • 47
  • 161
Loading