Skip to main content
added 42 characters in body
Source Link
Dennis
  • 210.6k
  • 41
  • 370
  • 825

sed, 2828 27 bytes

:
s#(+)\|\[:\]\|]\|{|}\|<->##
t

sed doesn't have a concept of truthy/falsy, so I'm considering an empty string truthy and a non-empty string falsy. This checks out if we consider the conditional /^$/.

Try it online!Thanks to @Neil for golfing off 1 byte!

Try it online!

sed, 28 bytes

:
s#(+)\|\[:\]\|{|}\|<->##
t

sed doesn't have a concept of truthy/falsy, so I'm considering an empty string truthy and a non-empty string falsy. This checks out if we consider the conditional /^$/.

Try it online!

sed, 28 27 bytes

:
s#(+)\|\[:]\|{|}\|<->##
t

sed doesn't have a concept of truthy/falsy, so I'm considering an empty string truthy and a non-empty string falsy. This checks out if we consider the conditional /^$/.

Thanks to @Neil for golfing off 1 byte!

Try it online!

Source Link
Dennis
  • 210.6k
  • 41
  • 370
  • 825

sed, 28 bytes

:
s#(+)\|\[:\]\|{|}\|<->##
t

sed doesn't have a concept of truthy/falsy, so I'm considering an empty string truthy and a non-empty string falsy. This checks out if we consider the conditional /^$/.

Try it online!