in reply to Re: Regex (counting) confusion :(
in thread Regex (counting) confusion :(

greedy:
"*" will matches "xxxx" and "" (count 2)
but "+" only matches "xxxx" (count 1)

not greedy
"*" will matches "" "x" "" "x" "" "x" "" "x" "" (count 9)
but "+" only matches "x" "x" "x" "x" (count 4)

Don't ask me why:(