java - Regex for a formatted convention -


i want check if string conforms particular format. example of correctly written string 12/kmy(naing)056503. first part number either 1 digit or 2 digit less or equal 15. followed stroke. second part 3 letter code. next part (naing) has spelled way texts written in format. last part 6 digit number. can regex written check if input conforms pattern?

try following:

(1[0-5]|[0-9])/[a-z]{3}\(naing\)[0-9]{6} 

i've tested against example @ http://regexpal.com/ , seems work fine.


Comments

Popular posts from this blog

java - Date formats difference between yyyy-MM-dd'T'HH:mm:ss and yyyy-MM-dd'T'HH:mm:ssXXX -

c# - Get rid of xmlns attribute when adding node to existing xml -