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
Rakudo does not recognize backslash escape sequences in character classes #1615
Comments
From @moritz23:15 <@moritz_> rakudo: say 'foto' ~~ /<-[\t]>+/ should match the full string, of course... |
From @moritzThe bug seems to be located in nqp-rx file src/Regex/P6Regex/Actions.pm for $<charspec> { The $_[0] captures the 't' in a regex like <[\t]>, and concatenating it I'm not sure what the best way of fixing this is; the logic for handling |
@moritz - Status changed from 'new' to 'open' |
From info@syntax-k.deHi! I'm trying to do this: "a\nb" ~~ m/<-[\n\#\ \t]>+/ and it matches the whole string, while "an\nb" ~~ m/<-[\n\#\ \t]>+/ matches "a" only. The positive cases behave consistently. The data file I'm parsing can have about anything in a "word" that is not While searching for information, I found little about if/how this is -- Jörg Walter |
From @jnthnOn Sat Mar 20 15:17:42 2010, moritz wrote:
This was fixed a bit ago:
Tagging testneeded, though we may already have some. /jnthn |
From @moritzWe have indeed test coverage, so closing ticket. |
@moritz - Status changed from 'open' to 'resolved' |
Migrated from rt.perl.org#73698 (status was 'resolved')
Searchable as RT73698$
The text was updated successfully, but these errors were encountered: