Skip to content

Document regex_sets #23232

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
jimav opened this issue Apr 30, 2025 · 2 comments · Fixed by #23270
Closed

Document regex_sets #23232

jimav opened this issue Apr 30, 2025 · 2 comments · Fixed by #23270

Comments

@jimav
Copy link

jimav commented Apr 30, 2025

The regex_sets feature is mentioned in experimental but, as far as I can find, nowhere documented.

$ find /usr/share/man -name '*perl*' -type f -print0 | xargs -0 zgrep regex_sets
/usr/share/man/man1/perltoc.1.gz:allow aliasing via \f(CW\*(C`\e$x = \e$y\*(C'\fR, \f(CW\*(C`regex_sets\*(C'\fR \- allow extended bracketed
/usr/share/man/man1/perl5260delta.1.gz:Certain regexes making use of the experimental \f(CW\*(C`regex_sets\*(C'\fR feature could
/usr/share/man/man3/experimental.3perl.gz:\&\f(CW\*(C`regex_sets\*(C'\fR \- allow extended bracketed character classes in regexps
/usr/share/man/man3/warnings.3perl.gz:\&         |                 +\- experimental::regex_sets

That was with perl 5.38.2, but I searched for 'regex_sets' in perlre, perlrebackslash, perlrecharclass, and perlreref at https://perldoc.perl.org/5.40.2/perl#Reference-Manual

If the feature is documented anywhere, please add a reference to that place in the pod for experimental (e.g. "See ...") and mention the soon-to-be-no-longer-required use experimental "regex_sets"; at the place so that tag can be used to find it.

@tonycoz
Copy link
Contributor

tonycoz commented Apr 30, 2025

khwilliamson added a commit to khwilliamson/perl5 that referenced this issue May 8, 2025
Fixes Perl#23232

"Extended Bracketed Ccharacter Classes" is the formal name documented;
but "regex_sets" is what you specify to 'feature' to enable/disable it.
Add a bit of text so that if you know one name, you can find the other.
@khwilliamson
Copy link
Contributor

I think Jim is right; and we need something in core to cross reference the two terms. #23270 adds just a bit of text, so that his failed search that led to this ticket would now succeed

khwilliamson added a commit to khwilliamson/perl5 that referenced this issue May 8, 2025
Fixes Perl#23232

"Extended Bracketed Character Classes" is the formal name documented;
but "regex_sets" is what you specify to 'feature' to enable/disable it.
Add a bit of text so that if you know one name, you can find the other.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants