fluttercandies/extended_text_field

[Discussions] multi match using `RegExpSpecialTextSpanBuilder`

invobzvr opened this issue · 1 comments

Content

Suppose I have the following rules:

  • $(.+)$ for orange color
  • *(.+)* for bold style

and the input string $aaa$ *$bbb$ ccc*.
Currently I got aaa $bbb$ ccc, since buildWithRegExp only match once, so bbb is bold but NOT in orange.
I wanna make bbb is both bold and in orange.
How to implement?
Thanks.

SpecialTextSpanBuilder just simple demo,you can implement it base on your case.