Regex help to match more than one letter

Snappo

New Member
I am using the following regex to match an account number. When we originally put this regex together, the rule was that an account number would only ever begin with a single letter. That has since changed and I have an account number that has 3 letters at the beginning of the string.I'd like to have a regex that will match a minimum of 1 letter and a maximum of 3 letters at the beginning of the string. The last issue is the length of the string. It can be as long as 9 characters and a minimum of 3.Here is what I am currently using.\[code\]'/^([A-Za-z]{1})([0-9]{7})$/'\[/code\]Is there a way to match all of this?
 
Back
Top