Hi I'm working on a form validation script. Up to this point, I've only written very basic regex validations. The input that I'm trying to validate should have entries in the following format AAA111 separated by comma space. So some sample entries are : ABC111
or ABC111, ABC112, ABC113
. Here's what I have so far:
if(!entry_54.match(/^[A-Z]{3}[0-9]{3}/)){
//do something
}
But this only catches a match at the beginning of the string. Any tips on how to expand the regex?