REgex to capture number
SOLVED- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
REgex to capture number
I have a text response Example" Call 950000 saved". I need to capture only number "950000" and have to assign this to a variable.
What regex we use to capture only the number from above sentence..
Thanks in advance,
Akil
Solved! Go to Solution.
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
@rraghvani wrote:See Regular Expressions Syntax. tutuapp vidmate
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
thanks for the response.
I can see the way the regular exp works in the documentation. I'm using keyword test here and I want extract the number from the output(Call 950000 saved, need to capture only 95000).
Where do we put the regular exp syntax..is it while performing set variable value or during log message?
any example would be helpful.
Thanks,
Akilan
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Here's an example which displays number(s) in the first paragraph using regular expression,
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Many thanks, appreciate your time.
