ilya.gorbunov
08/03/2017, 5:30 PMRegex
class. You can resort to java.util.regex.Pattern
API
val pattern = "[0-9]+".toPattern()
val matcher = pattern.matcher(string).region(startIndex, string.length)
if (matcher.lookingAt()) { ... }
evkaky
08/03/2017, 7:18 PMRegex
?ilya.gorbunov
08/04/2017, 6:00 PMtoPattern()
method and do the code above with the returned Pattern
instance.