I am trying to match a simple pattern using re
with python
but I can't manage to reach a solution.
So I have to match a pattern like:
word.word
but not for example
word.word.word
My current REGEX is [A-Za-z]+\.[A-Za-z]+
and matches both (wrong), I tried also with ^$
to include start and end of string but does not match any of them. I am doing something wrong, I really appreciate some help. Thanks