I am starting learning Python and i have problem with regex and python.
I want to check if word prefix is “aa” and suffix”bb”. But i can only check prefix. Could you write some simple regexp for checking prefix and suffix is satisfied.
bool(re.match(regexp, word))
You can do it without regex:
or with regex: