Non-Capturing Group (RegEx)

Technical support and scripting issues

Moderators: Dorian (MJT support), JRL

Post Reply
User avatar
PepsiHog
Automation Wizard
Posts: 511
Joined: Wed Apr 08, 2009 4:19 pm
Location: Florida

Non-Capturing Group (RegEx)

Post by PepsiHog » Thu Sep 20, 2018 7:37 pm

Hello Everyone,

I know it is here in the forum, but I can't seem to find it. I haven't done this in a while so I don't remember. I just need to know how to make a group non-capturing.

Thanks for the help.
Windows 7

PepsiHog. Yep! I drink LOTS of Pepsi (still..in 2021) AND enjoy programming. (That's my little piece of heaven!)

The immensity of the scope of possibilities within Macro Scheduler pushes the user beyond just macros!

hagchr
Automation Wizard
Posts: 327
Joined: Mon Jul 05, 2010 7:53 am
Location: Stockholm, Sweden

Re: Non-Capturing Group (RegEx)

Post by hagchr » Sun Dec 27, 2020 4:27 pm

I just saw this unanswered post from 2 years ago. In the unlikely event it has not been solved. To make a group non-capturing, just add ?:

Capturing: (\d+)
Non-capturing: (?:\d+)

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts