Joel Allen
asked on
Parsing Text
Hello,
I'm trying to parse out some text from a string using the Len, Right, and InStrRev function. I just can't get it right and am asking for help. The string would be something like this:
"My Printer Redirected (123)"
I'm trying to capture "(123)". This line always changes. The only text that is the same every time is the text "Redirected". So in this case:
"blah blah blah Redirected (99)"
I would need to capture the "(99)" this time. I basically need to capture all text on the right side of "Redirected".
Thanks for your help,
Joel
I'm trying to parse out some text from a string using the Len, Right, and InStrRev function. I just can't get it right and am asking for help. The string would be something like this:
"My Printer Redirected (123)"
I'm trying to capture "(123)". This line always changes. The only text that is the same every time is the text "Redirected". So in this case:
"blah blah blah Redirected (99)"
I would need to capture the "(99)" this time. I basically need to capture all text on the right side of "Redirected".
Thanks for your help,
Joel
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thank you.
Regex are your friends:
Open in new window