I need to validate file name with following pattern....
- File name(string) should not be null or empty
- File name(string) should have extension as .INI
- File name(string) should have "gen1" or "gen2" or "gen3"... genN where N has to be number.
We have already done the implementation with Javascript string functions but it looked little messy..
I am really interested in Validation-3 of "genN" which can be done more gracefully with RegEx