Regex quantifiers

Hi team
i want to know what is the differences between giving r’\w+a+’ and r’\w+a’

Since any a would also match \w, there is no difference. All strings that match one pattern will also match the other pattern.

1 Like