There are some regular expressions here:
r.+
re.+
re\w+
re\w{2,4}
[a-zA-Z]+
[a-zA-Z]{6}
- ...
All the regular expressions above match the word "result", but is there a precedence between each of them? For example, re\w{2,4}
may have a level 5 and re\w+
gets 3. In which the level measures the priority. When both of them match a word, I would prefer to pay more attention to the one with higher priority in some scenarios.