Am 10.03.22 um 17:29 schrieb Jaydeep Das: >> "|[0-9][.0-9_]*([Ee][-+]?[0-9]+)?[fFlLuU]*" >> > > The problem with this approach is that it matches `2..5` as a single token. > However in Kotlin, `..` is used to specify a range so 2..5 should be > broken into > 2 .. and 5. Good catch. Then we have to be more restrictive with the fractional part: "|[0-9][0-9_]*([.][0-9_]*)([Ee][-+]?[0-9]+)?[fFlLuU]*" -- Hannes