How can I keep the delimiter when split using regex in flutter?
Text: "this is {{A}} sample {{text}} ..."
What I want is: ["this is", "{{A}}", "sample", "{{text}}", "..."]
I've used the following regex,
"this is {{A}} sample {{text}} ...".split(RegExp("{{(.*?)}}"))
and got, ["this is ", " sample ", " ..."]