Hello I was writing a Regular Expression (first time in my life I might add) but I just can’t figure out how to do what I want. So far, so good since I already allow only Letters and spaces (as long as it’s not the first character) now what I’m missing is that I don’t want to allow any numbers in between the characters…could anybody help me please?
/^[^\s][\sa-zA-Z]+[^\d\W]/
OK, what you need is:
This matches:
If you want to ensure that it also ends in a letter then put another
before the
$. Note however that the string will then have to contain at least two letters (one at each end) to match.