Is there a regex flavor that allows me to count the number of repetitions matched by the * and + operators? I\'d specifically like to know if it\'s
*
+
how about taking "pref ([a-z]+) suff"
"pref ([a-z]+) suff"
then use groups to capture that [a-z]+ in the bracket and find its length?
You can use this length for subsequent matching as well.