Toddobryan
06/18/2019, 4:31 PMCasey Brooks
06/18/2019, 4:37 PMToddobryan
06/18/2019, 4:40 PMCasey Brooks
06/18/2019, 4:40 PMToddobryan
06/18/2019, 4:42 PMCasey Brooks
06/18/2019, 4:47 PMToddobryan
06/18/2019, 5:14 PMCasey Brooks
06/18/2019, 5:26 PMCasey Brooks
06/18/2019, 5:28 PMkotlin.regex
simply a wrapper over the platform-native regex engines if they thought they were different enough to be problematic. If that were a major concern for the Kotlin team, I’d imagine they would have written their own pure-kotlin regex engine, or not done it at all. The fact that it exists shows that they have some level of confidence that it can be safely used in a multiplatform settingIan White
06/18/2019, 5:52 PMCasey Brooks
06/18/2019, 6:11 PMToddobryan
06/18/2019, 6:29 PMkotlin.regex
points you to different grammars depending on which runtime you're targeting. In particular, I don't think the JS library supports POSIX character classes, so you could create a regex that works on the JVM, but then when you port over to JS it wouldn't work, and I'm not sure if you'd find out about that at compile-time or have to wait till runtime.Casey Brooks
06/18/2019, 6:39 PMCasey Brooks
06/18/2019, 6:44 PMToddobryan
06/18/2019, 8:04 PM