Who can help me to translate this XML Schema pattern “[0-9]+-([0-9]|K)” to java regular expression?
Who can help me to translate this XML Schema pattern [0-9]+-([0-9]|K) to java regular
Share
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.
Here is the pattern with a snippet on how to use it.
\\ is there to escape the \ in a string. \d represents [0-9]. I do not recall if the – has to be escaped so I did it just in case.