I want to do the validation using regular expression, It should allow only digit and Asterisk but the asterisk should come in end of the text only
for example 1234* , 123456*, 12345678* it should not come between the digit, Could you please tell me the regular expression for this.
santhosh kumar vk wrote:could you please send me the regular expression for this?
No. The purpose of the ranch is to help people to learn, not give them answers.
If you don't know enough about regular expressions and can't be bothered to read one of the many available tutorials on the web, you could solve this using a couple of methods from the String, Integer/Long and/or Character classes.