eatWhile

Continue matching characters that match the given string. Return true if any characters were consumed.


fun eatWhile(pattern: Regex): Boolean

Continue matching characters that match the given regex. Return true if any characters were consumed.


fun eatWhile(predicate: (String) -> Boolean): Boolean

Continue matching characters for which the predicate returns true. Return true if any characters were consumed.