|
-
Nov 14th, 2025, 11:36 AM
#6
Re: Now I need RegEx help please
You can use ([^>]*?)> pattern. The expression in parens basicaly says “capture everything that is not a > and stop on first >”
The *? quantifier differs to simple * by being non-greedy i.e. it will stop on first match, not the last one which is better in your case.
You have to learn how to deal with capturing groups. You don’t need to use InStr to post-process your regex results — this looks silly provided you already have the power of regex at your disposal (VB’s string processing functions are puny in comparison).
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|