igor.wojda
11/09/2018, 6:45 PMconst matches = str.match(/[aei]/gi)
to check if string contains a
, e
or i
character. However In kotlin this does not work. I wonder are the regular expression general cross-language concept or each language has own implementation (similar to other languages yet different)?hudsonb
11/09/2018, 6:47 PMbloder
11/09/2018, 6:47 PMmatches
?bloder
11/09/2018, 6:48 PMstr.matches(Regex("/[aei]/gi"))
?igor.wojda
11/09/2018, 6:54 PMdalexander
11/09/2018, 6:58 PMbloder
11/09/2018, 7:02 PMstr.matches(Regex("[aei]"))
this worksgildor
11/10/2018, 6:16 AMgildor
11/10/2018, 6:16 AM