I am trying to write my own syntax highlighter in sublime. I think it uses python-based regular expression. Just want to match all tokens in a row like:
description str.bla, str.blub, str.yeah, str.no
My regular expression looks like:
regex = "(description) (str\\.[\\w\\d]+)(,\\s*(str\\.[\\w\\d]+))*"
Now I expect 1 matches in group 1 ("description"), 1 match in group 2 ("str.bla") and 3 matches in my group no 4 ("str.blub", "str.yeah", "str.no")
but I have only 1 match in my last group ("str.no"). What's going on there?
Thanks a lot!