Skip to main content
Commonmark migration
Source Link

#Python 2, 67 bytes

Python 2, 67 bytes

Uses Digital Trauma's regex. Input is a single string separated by a comma. Not sure if that format is allowed for input...

import re f=lambda x:bool(re.match('^(2|t[ow]?o|t0),b(e?e?|3)$',x)) 

#Python 2, 67 bytes

Uses Digital Trauma's regex. Input is a single string separated by a comma. Not sure if that format is allowed for input...

import re f=lambda x:bool(re.match('^(2|t[ow]?o|t0),b(e?e?|3)$',x)) 

Python 2, 67 bytes

Uses Digital Trauma's regex. Input is a single string separated by a comma. Not sure if that format is allowed for input...

import re f=lambda x:bool(re.match('^(2|t[ow]?o|t0),b(e?e?|3)$',x)) 
Source Link
mbomb007
  • 23.6k
  • 7
  • 66
  • 143

#Python 2, 67 bytes

Uses Digital Trauma's regex. Input is a single string separated by a comma. Not sure if that format is allowed for input...

import re f=lambda x:bool(re.match('^(2|t[ow]?o|t0),b(e?e?|3)$',x))