Possible Duplicate:
Get numbers from string with regex
Hi I need to check if a string is in the following format.
case1/clientid2
In the example the case and clientid will be static but numbers will change. Is it possible using Regular expression?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Yes, definitely duplicate of this.
Here’s the regex that you could use,
case[\d]+/clientid[\d]+Edit: Removed the escape character.