Skip to main content
added 26 characters in body
Source Link
Leaky Nun
  • 50.1k
  • 6
  • 110
  • 284

Retina, 134 129129 122 bytes

511 bytes thanks to Martin Ender, and for inspiration of 1 more.

^.
$&;S2=`
[K-S]
1$&
T`xL`d9d
\d+.+
$*
$
aaab
a
bbbcbb
b|c
;$0¶$0
c
ddd.
d
...*..
b
19$*.
S`;
1(1)*¶1(1)*¶((?<-2>.+¶)*(?<-1>.)*).
$3O
O^$`

Try it online!Try it online!

Retina, 134 129 bytes

5 bytes thanks to Martin Ender.

^.
$&;
[K-S]
1$&
T`xL`d9d
\d+
$*
$
aaab
a
bbbcbb
b|c
;$0
c
ddd.
d
...*..
b
19$*.
S`;
1(1)*¶1(1)*¶((?<-2>.+¶)*(?<-1>.)*).
$3O
O^$`

Try it online!

Retina, 134 129 122 bytes

11 bytes thanks to Martin Ender, and for inspiration of 1 more.

S2=`
[K-S]
1$&
T`xL`d9d
.+
$*
$
aaab
a
bbbcbb
b|c
¶$0
c
ddd.
d
...*..
b
19$*.
1(1)*¶1(1)*¶((?<-2>.+¶)*(?<-1>.)*).
$3O
O^$`

Try it online!

added 38 characters in body
Source Link
Leaky Nun
  • 50.1k
  • 6
  • 110
  • 284

Retina, 134134 129 bytes

5 bytes thanks to Martin Ender.

\d+^.
;$&$*$&;
{`\D;[K-S]
1$01$&
}T`L`_LT`xL`d9d
^1{8}\d+
7$*$*
$
aaab
a
bbbcbb
b|c
;$0
c
ddd.
d
...*..
b
19$*.
S`;
1(1)*¶1(1)*¶((?<-2>.+¶)*(?<-1>.)*).
$3O
O^$`

Try it online!Try it online!

Retina, 134 bytes

\d+
;$&$*
{`\D;
1$0
}T`L`_L
^1{8}
7$*
$
aaab
a
bbbcbb
b|c
;$0
c
ddd.
d
...*..
b
19$*.
S`;
1(1)*¶1(1)*¶((?<-2>.+¶)*(?<-1>.)*).
$3O
O^$`

Try it online!

Retina, 134 129 bytes

5 bytes thanks to Martin Ender.

^.
$&;
[K-S]
1$&
T`xL`d9d
\d+
$*
$
aaab
a
bbbcbb
b|c
;$0
c
ddd.
d
...*..
b
19$*.
S`;
1(1)*¶1(1)*¶((?<-2>.+¶)*(?<-1>.)*).
$3O
O^$`

Try it online!

deleted 6 characters in body
Source Link
Leaky Nun
  • 50.1k
  • 6
  • 110
  • 284

Retina, 136134 bytes

\d+
;$&$*
{`[A-Z]`\D;
$&11$0
}T`L`_L
^1{8}
7$*
$
aaab
a
bbbcbb
b|c
;$0
c
ddd.
d
...*..
b
19$*.
S`;
1(1)*¶1(1)*¶((?<-2>.+¶)+*(?<-1>.)+*).
$3O
O^$`

Try it online!Try it online!

Retina, 136 bytes

\d+
;$&$*
{`[A-Z]
$&1
}T`L`_L
^1{8}
7$*
$
aaab
a
bbbcbb
b|c
;$0
c
ddd.
d
...*..
b
19$*.
S`;
1(1)*¶1(1)*¶((?<-2>.+¶)+(?<-1>.)+).
$3O
O^$`

Try it online!

Retina, 134 bytes

\d+
;$&$*
{`\D;
1$0
}T`L`_L
^1{8}
7$*
$
aaab
a
bbbcbb
b|c
;$0
c
ddd.
d
...*..
b
19$*.
S`;
1(1)*¶1(1)*¶((?<-2>.+¶)*(?<-1>.)*).
$3O
O^$`

Try it online!

Source Link
Leaky Nun
  • 50.1k
  • 6
  • 110
  • 284
Loading