How to validate a string in the form E25/8938/2009
I am writing an application which requires a student to input a registration number which in our university its in the for <COURSE_CODE>/<A_UNIQUE_NO>/<YEAR_OF ENTRY_IN UNIVERSITY> e.g E35/3787/1987 OR I20/9992/1972 .I wish to validate this entry,that is
- the first character should be alaphabetical,
- the next two characters should be numerical,
- the 4th and 9th charaters a "/"
- and the rest numerical
May someone please help me get this working, just drop me an email to firstname.lastname@example.org I'll really appreciate.