i would like to validate user inputs like this: "Ahmedabad Intl-Ahmedabad, India(AMD)", The first letter is capital and there can be space and - in the first part. and then one comma with one space, and then some letters with '(' letters ')'. I have tried it like this:
preg_match('/^([a-zA-Z- ]+), ([a-zA-Z]+)([A-Z()]+)/', $string),
Does anyone know why it does not work? thanks