On 04/16/2018, at 01:59, F. Alfredo Rego <[email protected] 
<mailto:[email protected]>> wrote:
> I’m almost there, but not quite, because I’m interested in the UNCOMMENTED 
> #defines, such as line 5 here:


Hey Alfredo,

What you really want here is a negative lookahead assertion.

^(?>(?:(?!//).)*#define.+)

It's much more flexible than a negative lookbehind assertion, although it can 
be a bit hard to understand.

--
Best Regards,
Chris

-- 
This is the BBEdit Talk public discussion group. If you have a 
feature request or would like to report a problem, please email
"[email protected]" rather than posting to the group.
Follow @bbedit on Twitter: <http://www.twitter.com/bbedit>
--- 
You received this message because you are subscribed to the Google Groups 
"BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/bbedit.

Reply via email to