I am trying to write a reg expression with the following rules:
Must start with a lower case letter, can have any characters in between EXCEPT NUMBERS, must end with a lower case letter
the expression I came up with is the following:
[a-z]+([^0-9]*?)[a-z]+
the problem is that “section9” will yeild “section”, and “se-ction9” will yeild “se-ction”. But “se1ction9” will break it down into 2 mathces, “se” and “ction”. How can I change my expression so that “se1ction9” is rejected completely?