Oleh Ponomarenko
08/26/2020, 10:34 AMMichael
08/26/2020, 10:39 AM"<regexp>".toRegex().findAll("<string>")
which gives you a list of all matches found in the specified string not sure if this is what you needdiesieben07
08/26/2020, 11:02 AMmatch
in JS returns an array of groups that were matched, it doesn't return an array of matches (to find all matches in JS you need to call match repeatedly). The equivalent in Kotlin would be find, which returns a MatchResult
, giving you access to the groupsOleh Ponomarenko
08/26/2020, 11:24 AM