I have a string that is a ContentStream of an email object.
The string is like “….Number of apples:\t1000….”
I need to get 1000 into a variable. But I’m unable to build a RegEx that works.
I need some help.
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.
\d+for non-negative integers.\-?\d+for positive or negative integers.That will, of course, match any number in your string. You should include some lookaround to ensure that you capture the correct number. For the above example: