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
if it must start with letters, contain only letters (no spaces), and could end with a single space i think it should be