| Title |
Test
Find
Find two words, any characters, then number
|
| Expression |
(Word1|Word2).*?(10|[1-9]) |
| Description |
If you have one or more words that you are searching for, random text and then a number at the end from 0 to 10, this regex should work. |
| Matches |
Word1: I need to extract this substring starting with testing. 8 |
| Non-Matches |
This is a test, again I am test |
| Author |
Rating:
Not yet rated.
Dan Brewerton
|
| Source |
http://forums.asp.net/t/1706541.aspx/1?extracting+a+substring+from+a+huge+string |
| Your Rating |
|