Skip to main content
golfed another byte
Source Link
ETHproductions
  • 50.1k
  • 6
  • 94
  • 240

Japt v2, 21 2020 19 bytes

Saved 1 byte2 bytes thanks to @Shaggy

e/\[.([^[]*?)](./@YpZ

Test it online!Test it online!

e is recursive replace, which makes one replacement at a time until there are no more matches. In this case, matches of the regex /\[([^[]*?)](\d)/g are replaced with with <inner text> repeated <digit> times until there are no more matches.

According to what I have planned (here), this regex should eventually be at least 33 2 bytes shorter:

‹[“⁽[»₋”]“.›

Japt v2, 21 20 bytes

Saved 1 byte thanks to @Shaggy

e/\[([^[]*?)](./@YpZ

Test it online!

e is recursive replace, which makes one replacement at a time until there are no more matches. In this case, matches of the regex /\[([^[]*?)](\d)/g are replaced with with <inner text> repeated <digit> times until there are no more matches.

According to what I have planned (here), this regex should eventually be at least 3 bytes shorter:

‹[“⁽[»₋”]“.›

Japt v2, 21 20 19 bytes

Saved 2 bytes thanks to @Shaggy

e/.([^[]*?)](./@YpZ

Test it online!

e is recursive replace, which makes one replacement at a time until there are no more matches. In this case, matches of the regex /\[([^[]*?)](\d)/g are replaced with with <inner text> repeated <digit> times until there are no more matches.

According to what I have planned (here), this regex should eventually be at least 3 2 bytes shorter:

‹[“⁽[»₋”]“.›
golfed a byte
Source Link
ETHproductions
  • 50.1k
  • 6
  • 94
  • 240

Japt v2, 2221 20 bytes

Saved 1 byte thanks to @Shaggy

e/\[([^[]*?)](\d./@YpZ

Test it online!Test it online!

e is recursive replace, which makes one replacement at a time until there are no more matches. In this case, matches of the regex /\[([^[]*?)](\d)/g are replaced with with <inner text> repeated <digit> times until there are no more matches.

According to what I have planned (here), this regex should eventually be at least 3 bytes shorter:

‹[“⁽[»₋”]“\d›‹[“⁽[»₋”]“.›

Japt v2, 22 bytes

e/\[([^[]*?)](\d/@YpZ

Test it online!

e is recursive replace, which makes one replacement at a time until there are no more matches. In this case, matches of the regex /\[([^[]*?)](\d)/g are replaced with with <inner text> repeated <digit> times until there are no more matches.

According to what I have planned (here), this regex should eventually be at least 3 bytes shorter:

‹[“⁽[»₋”]“\d›

Japt v2, 21 20 bytes

Saved 1 byte thanks to @Shaggy

e/\[([^[]*?)](./@YpZ

Test it online!

e is recursive replace, which makes one replacement at a time until there are no more matches. In this case, matches of the regex /\[([^[]*?)](\d)/g are replaced with with <inner text> repeated <digit> times until there are no more matches.

According to what I have planned (here), this regex should eventually be at least 3 bytes shorter:

‹[“⁽[»₋”]“.›
added 175 characters in body
Source Link
ETHproductions
  • 50.1k
  • 6
  • 94
  • 240

Japt v2, 22 bytes

e/\[([^[]*?)](\d/@YpZ

Test it online!

e is recursive replace, which makes one replacement at a time until there are no more matches. In this case, matches of the regex /\[([^[]*?)](\d)/g are replaced with with <inner text> repeated <digit> times until there are no more matches.

According to what I have planned (here), this regex should eventually be at least 3 bytes shorter:

‹[“⁽[»₋”]“\d›

Japt v2, 22 bytes

e/\[([^[]*?)](\d/@YpZ

Test it online!

e is recursive replace, which makes one replacement at a time until there are no more matches. In this case, matches of the regex /\[([^[]*?)](\d)/g are replaced with with <inner text> repeated <digit> times until there are no more matches.

Japt v2, 22 bytes

e/\[([^[]*?)](\d/@YpZ

Test it online!

e is recursive replace, which makes one replacement at a time until there are no more matches. In this case, matches of the regex /\[([^[]*?)](\d)/g are replaced with with <inner text> repeated <digit> times until there are no more matches.

According to what I have planned (here), this regex should eventually be at least 3 bytes shorter:

‹[“⁽[»₋”]“\d›
Source Link
ETHproductions
  • 50.1k
  • 6
  • 94
  • 240
Loading