So the following would be valid:
So far I came up with this
(.+)[a-zA-Z0-9.-]\.[a-zA-Z0-9.-]+$ but it doesn’t work as I can add spaces. What can I do to make my Regex work? Also can I prevent the dot being the first character?