Skip to main content
We’ve updated our Terms of Service. A new AI Addendum clarifies how Stack Overflow utilizes AI interactions.
Code Golf

Return to Answer

added 8 characters in body
Source Link
math junkie
  • 7.3k
  • 1
  • 23
  • 47

Retina, (削除) 68 (削除ここまで) (削除) 67 (削除ここまで) 60(削除) 60 (削除ここまで) 58 bytes

^(a[^n]|be|ch|gw|hi|na|p[or]|sa[hn]|[itvw]|zhn?a[^n]|be|ch|gw|p[or]|sa[hn]|h?[itvw]|zh)|as|ss|in|og?r

Try it online! Try it online!

Regex that matches all truthy values and none of the falsey ones.

Verify all truthy inputs Verify all truthy inputs

Verify all falsey inputs Verify all falsey inputs

Retina, (削除) 68 (削除ここまで) (削除) 67 (削除ここまで) 60 bytes

^(a[^n]|be|ch|gw|hi|na|p[or]|sa[hn]|[itvw]|zh)|as|ss|in|og?r

Try it online!

Regex that matches all truthy values and none of the falsey ones.

Verify all truthy inputs

Verify all falsey inputs

Retina, (削除) 68 (削除ここまで) (削除) 67 (削除ここまで) (削除) 60 (削除ここまで) 58 bytes

^(n?a[^n]|be|ch|gw|p[or]|sa[hn]|h?[itvw]|zh)|as|ss|in|og?r

Try it online!

Regex that matches all truthy values and none of the falsey ones.

Verify all truthy inputs

Verify all falsey inputs

deleted 18 characters in body
Source Link
math junkie
  • 7.3k
  • 1
  • 23
  • 47

Retina, (削除) 68 (削除ここまで) 67(削除) 67 (削除ここまで) 60 bytes

^(a[^n]|be|ch|dog?r|fi|gw|has|hi|na|p[or]|sa[hn]|shin|[itvw]|zha[^n]|be|ch|gw|hi|na|p[or]|sa[hn]|[itvw]|zh)|ss|as|ss|in|og?r

Try it online! Try it online!

Regex that matches all truthy values and none of the falsey ones.

Verify all truthy inputs Verify all truthy inputs

Verify all falsey inputs Verify all falsey inputs

Retina, (削除) 68 (削除ここまで) 67 bytes

^(a[^n]|be|ch|dog?r|fi|gw|has|hi|na|p[or]|sa[hn]|shin|[itvw]|zh)|ss

Try it online!

Regex that matches all truthy values and none of the falsey ones.

Verify all truthy inputs

Verify all falsey inputs

Retina, (削除) 68 (削除ここまで) (削除) 67 (削除ここまで) 60 bytes

^(a[^n]|be|ch|gw|hi|na|p[or]|sa[hn]|[itvw]|zh)|as|ss|in|og?r

Try it online!

Regex that matches all truthy values and none of the falsey ones.

Verify all truthy inputs

Verify all falsey inputs

added 11 characters in body
Source Link
math junkie
  • 7.3k
  • 1
  • 23
  • 47

Retina, 68(削除) 68 (削除ここまで) 67 bytes

^(a[^n]|be|ch|do[gr]|fi|gw|has|hi|na|p[or]|sa[hn]|shin|[itvw]|zha[^n]|be|ch|dog?r|fi|gw|has|hi|na|p[or]|sa[hn]|shin|[itvw]|zh)|ss

Try it online! Try it online!

Regex that matches all truthy values and none of the falsey ones.

Verify all truthy inputs Verify all truthy inputs

Verify all falsey inputs Verify all falsey inputs

Retina, 68 bytes

^(a[^n]|be|ch|do[gr]|fi|gw|has|hi|na|p[or]|sa[hn]|shin|[itvw]|zh)|ss

Try it online!

Regex that matches all truthy values and none of the falsey ones.

Verify all truthy inputs

Verify all falsey inputs

Retina, (削除) 68 (削除ここまで) 67 bytes

^(a[^n]|be|ch|dog?r|fi|gw|has|hi|na|p[or]|sa[hn]|shin|[itvw]|zh)|ss

Try it online!

Regex that matches all truthy values and none of the falsey ones.

Verify all truthy inputs

Verify all falsey inputs

deleted 7 characters in body
Source Link
math junkie
  • 7.3k
  • 1
  • 23
  • 47
Loading
Source Link
math junkie
  • 7.3k
  • 1
  • 23
  • 47
Loading

AltStyle によって変換されたページ (->オリジナル) /