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
Missing \\ in perlre #7761
Comments
From andrew@ugh.net.auCreated by andrew@paivi.localIn perlre there is a section entitled "Creating custom RE It might also be useful to put in some explanation as to why the Thanks, Andrew Inline Patch--- perlre.pod.orig Tue Jan 13 21:46:44 2004
+++ perlre.pod Sun Jan 23 13:31:26 2005
@@ -1288,7 +1288,7 @@
sub invalid { die "/$_[0]/: invalid escape '\\$_[1]'"}
- my %rules = ( '\\' => '\\',
+ my %rules = ( '\\' => '\\\\',
'Y|' => qr/(?=\S)(?<!\S)|(?!\S)(?<=\S)/ );
sub convert {
my $re = shift; Perl Info
|
From @rgsAndrew (via RT) wrote:
Good catch.
What about : We must also take care of not escaping the legitimate \\Y|
Thanks, applied to the development docs as change #23872.
|
The RT System itself - Status changed from 'new' to 'open' |
@rgs - Status changed from 'open' to 'resolved' |
Migrated from rt.perl.org#33906 (status was 'resolved')
Searchable as RT33906$
The text was updated successfully, but these errors were encountered: