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?
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?
Yes, definitely duplicate of this.
Here's the regex that you could use, case[\d]+/clientid[\d]+
Edit: Removed the escape character.