Re non-capturing parentheses, this might help: 
https://stackoverflow.com/questions/3512471/what-is-a-non-capturing-group-in-regular-expressions

For the most part RegEx in JS & BBEdit are much the same.  The big difference 
is that in JS vs BBEdit is the syntax for the backreference.
(\ (backslash) in BBEdit vs $ in JS)

So for example say your Find is "AE" plus a 3rd uppercase character [A-Z], 
followed by a number [0-9], where you want to inserted new text between the 
letters and numbers...

In BBEdit that would be Find: (AE[A-Z])([0-9])  Replace: \1InsertedNewText\2  
In JS the same thing is: SomeText.replace(/(AE[A-Z])([0-9])/g, 
$1InsertedNewText$2);





> On Feb 23, 2021, at 1:43 PM, Ted Stresen-Reuter <[email protected]> 
> wrote:
> 
> I'm trying to do some advanced parsing of source code using RegEx. I'm using 
> non-capturing parentheses "(?…)" and friends for look aheads and look behinds 
> and such. I'm wondering if anyone can tell me:
> 
> 1. What type of RegEx extension are these types of patterns (look aheads, 
> look behinds)?
> 2. Is there an equivalent that could be used in JavaScript, say, in a node 
> application?
> 

-- 
This is the BBEdit Talk public discussion group. If you have a feature request 
or need technical support, please email "[email protected]" rather than 
posting here. Follow @bbedit on Twitter: <https://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 view this discussion on the web visit 
https://groups.google.com/d/msgid/bbedit/1FC05784-DDF4-421F-95B2-777D0AFBDB14%40gmail.com.

Reply via email to