Tutorial by Examples

Using immutable locals: Uses less horizontal space but more vertical space than the "anonymous temporaries" template. Preferable over the "anonymous temporaries" template if the when expression is in a loop--in that case, regex definitions should be placed outside the loop. im...
This post shows how to use most of the functions in the Regex class, work with null safely related to the Regex functions, and how raw strings makes it easier to write and read regex patterns. The RegEx class To work with regular expressions in Kotlin, you need to use the Regex(pattern: String) cl...

Page 1 of 1