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
<!regex> parses but always returns true #586
Comments
From @finanalystSee the following (svn revision 34915)
The assumption was <!digit> is the logical inverse of <digit> Either way, /<!digit>/ is returning true with and without a digit ( $x |
From @pmichaudThere seems to be a misunderstanding about what <!digit> does here -- On Tue Jan 06 05:06:46 2009, richardh wrote:
The $y match (the one calling <!digit>) succeeds at position 0, as it
The $x match succeeds at position 0; the $y match succeeds at position 0.
The $x match succeeds at position 0. (The $y match fails.)
This assumption is false -- <!digit> is the inverse of <?digit> . I suspect what you're looking for is <-digit>, which means "match any Finally, note that regex digit { [0..9] } means "match a '0' followed by two characters followed by a '9'". regex digit { <[0..9]> } So we end up with:
Closing ticket, Pm |
The RT System itself - Status changed from 'new' to 'open' |
@pmichaud - Status changed from 'open' to 'rejected' |
Migrated from rt.perl.org#62012 (status was 'rejected')
Searchable as RT62012$
The text was updated successfully, but these errors were encountered: