I am having a hard time figuring out the earliest version of perl where non-capturing parentheses are supported in regex patterns?
Can I take this feature for granted for all versions of Perl5?
I dug out Perl 5.000 from my archive CDs. It includes
=item (?:regexp)
This groups things like "()" but doesn't make backrefences like "()" does.
So it's in all versions of Perl 5. (It's definitely not in Perl 4 or earlier.)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With