Regex Promt help

Hello, just need help with the mask bit of the [?Prompt] things

##Getting a number 4-7 digits
This is all I could come up with:/

##Getting a first and Last Name (Only consisting of letters)
([A-Z][A-Z][A-Z][A-Z]) [A-Z][A-Z][A-Z][A-Z][A-Z][A-Z][A-Z][A-Z][A-Z]
Again this on ly works if there first name is 4 letters and last name is 10 letters. I only really want to make sure there is a space in there so that my staff arent just putting first names or just last names in the field.

\d match 0-9
{m,n} match at least m to n

  • match one or more
  • match 0 or more

    [1-9]\d{3,6} match 1000 to 9999999
    [A-Z][a-z]+ [A-Z][a-z]+ match Aa Aa, Aaaaa Aaa …

1 Like