troubleshooting Question

4 specific recursive RegEx searches in

Avatar of psyfect
psyfect asked on
Visual Basic ClassicVisual Basic.NET
21 Comments1 Solution534 ViewsLast Modified:
Find and return all instances of random (unknown) strings RECURSIVELY via surrounding expressions (returning the entire expression is fine, I can strip the data):

The asterisk represents the random string that I am searching for, everything else is a constant expectation when searching the surrounding context.

Here are the expressions:
%26t=*&";                            (* represents anything)
&n=*"                            (* represents anything)
<span>* / * / *</span>        (HERE THE * represents any number)
<span>*</span>                 (HERE THE * represents a number larger than 100)

I want to search each line for each type of case, I think that'd be fastest instead of searching the whole page for one expression, then search it again for a second, instead, take it one at a time, but I'll take any form of a recursive search using regex for these patterns.


skip 20 lines of text


skip 30 lines of text


skip 50 lines of text searching until

<span>1 / 22 / 90</span>

Should return:

Edit: assume the string in question is simply stored as a string variable in
dim str as string
str = wall of text
recursively search wall of text for expressions above.
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 21 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 21 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros