added 262 characters in body
Source Link
Nahuel Fouilleul
  • 7.9k
  • 1
  • 7
  • 16

perl 5, 2626 25 bytes

using ; as delimiter the end delimiter can be removed

$_=!m,[m;[/~][_/]|[\\_][\\~],]|[\\_][~\\]

TIO

TIO26 bytes

perl 5, 26 bytes

$_=!m,[/~][_/]|[\\_][\\~],

TIO

perl 5, 26 25 bytes

using ; as delimiter the end delimiter can be removed

$_=!m;[/~][_/]|[\\_][~\\]

TIO

26 bytes

Source Link
Nahuel Fouilleul
  • 7.9k
  • 1
  • 7
  • 16

perl 5, 26 bytes

$_=!m,[/~][_/]|[\\_][\\~],

TIO