Hello everyone here...
I need to build up a swing application related to vehicle registration and in which i want to do input the vehicle number of indian standard, like
^[A-Z]{2} [0-9]{2} [A-Z]{2} [0-9]{4}$
See http://en.wikipedia.org/wiki/Vehicle_registration_plates_of_India
Looks like the format is a bit more complex than stated in your question...