Christian Sousa
07/28/2020, 10:46 AM"\b[01]+\b".toRegex().matches("11010011")
Basically what I’m trying to do is just check if there is something else besides 0 or 1 in the string. I tried also with
"/^[0-1]+$/".toRegex().matches("11010011")
But with the same result..okarm
07/28/2020, 10:51 AMspand
07/28/2020, 10:51 AM/
Christian Sousa
07/28/2020, 10:51 AMspand
07/28/2020, 10:53 AMtoRegex()
so there is no need to use the /
delimitersokarm
07/28/2020, 10:57 AMChristian Sousa
07/28/2020, 10:58 AMMatteo Mirk
08/12/2020, 9:57 AMalt+Enter
on the string you get the “check” intention to test your expression in IntelliJ.