Created
September 14, 2019 23:03
-
-
Save martinbonnin/c2e4652d71618d119474529a70fb4c85 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
val matchResult = Regex("(?<key>.*)=(?<value>.*)").matchEntire("jdk=8") | |
if (matchResult != null) { | |
println("key=${matchResult.groups.get("key")!!.value}") | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment