I am trying to resolve this lecture with regular expressions, but could not do it correctly.
regexp '(.*[a]){3,}'
3 or more 'a' must match, which it does, but:
"Sao Tomé and Príncipe" with 2 a matches LIKE '%a%a%a%', which is the correct answer.
I'm curious what is going wrong here?
source
share