Regular expression in spring boot and angular


I am working on a project and I need the regular expressions to validate some data.

Here is what I want to obtain:

A character string which only begins with a letter between A z, and which is at least two characters long and at most 80, which can contain digits from 0 to 9 inside the string or at the end, and spaces inside too but which does not contain special characters like:

Example: this is the formats that i want to validate.
Amanda1 test9 or
Amanda 5 or

Thanks for your contribution


You can use this pattern


Answered By – Bahaa Bakri

This Answer collected from stackoverflow, is licensed under cc by-sa 2.5 , cc by-sa 3.0 and cc by-sa 4.0

Leave a Reply

(*) Required, Your email will not be published