What is the correct regex for getting a string that contains only letters, must start with letters and a continuous string of letters. But can end with letters OR a space (just space and not tabs or returns).
I have this pattern /^\S*[a-zA-Z]\s*$/
Is it correct? do I need the \S*
at the start and how do I ensure that there is no spaces in between letters?
TIA