<https://gist.github.com/uburoiubu/6ef31c56573a74f...
# announcements
u
https://gist.github.com/uburoiubu/6ef31c56573a74fe4e4c5709936c1d06 could you explain to me why it does not work? I’m trying to write a regex in Kotlin that would match input like this:`{{something}}`. any help would be appreciated.
i
@ubu It works, but
.+
patterns are too greedy. The first one matches
product:12;k:13}}, {{product
substring.
You can try lazy quantifiers
.+?
or limit characters captured between semicolons instead of capturing any chars with
.
, including semicolons and braces
u
@ilya.gorbunov, thanks.