It lets you use parenthesis without creating a capture group.

If you’re looking for ‘def’ in this line:

        abc def

Then you could use:

        (abc) (def)

But your ‘def’ would end up in capture group 2.

If you instead use:

        (?:abc) (def)

Then ‘def’ will be in capture group 1.

(Capture groups being the replacement string you refer to with \1 \2 etc.)

Cheers


> On 2020-03-02, at 12:09, 'anotherhoward' via BBEdit Talk 
> <[email protected]> wrote:
> 
> fletcher,
> 
> Your change addressed my question. If you could explain what `?:` does I 
> would much appreciate it.
> 
> Howard

-- 
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/79401DA8-8622-4EBD-AFEB-05B8036DDDE1%40gmail.com.

Reply via email to