Regex test bug?
See original GitHub issueChallenge match-single-characters-not-specified has an issue.
User Agent is: Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/55.0.2883.87 Safari/537.36
.
Please describe how to reproduce this issue, and include links to screenshots if possible.
Not sure what the test string has 9 characters that are not a number or letter, but I believe my code is correct. Usually the tests will say “xyz” should result in “123”. When this test is ran, you can not see what was used in the test.
let quoteSample = "3 blind mice.";
let myRegex = /[^a-z0-9]/gi; // Change this line
let result = quoteSample.match(myRegex); // Change this line
Issue Analytics
- State:
- Created 7 years ago
- Comments:9 (9 by maintainers)
Top Results From Across the Web
Bug with RegExp.test (JavaScript) - Stack Overflow
The issue is that you are using /g in your Regexp - when this is used, and the regex is executed multiple times,...
Read more >Why is my regex working intermittently? - DEV Community
Nasty weird bugs caused by silly things. ... When the RegExp test method is run with global flag (/g), the regex keeps internally...
Read more >bug report - Regex Tester/Debugger
Regex Tester isn't optimized for mobile devices yet. You can still take a look, but it might be a bit quirky. > Okay!....
Read more >What do regular expression bugs look like? - Chuniversiteit.nl
A bug due to suboptimal or incorrect usage of a regex API (9.3%), e.g. deprecated APIs, wrong flags, lack of input/output validation, or ......
Read more >Demystifying regular expression bugs | SpringerLink
We conduct an empirical study of 356 regex-related bugs from merged pull requests in Apache, Mozilla, Facebook, and Google GitHub repositories.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@erictleung Sounds like a good idea! We need more of those - the ones I opened yesterday melt away in a few hours 😄
@Greenheart yeah, I can create issues for them for first timers. I think the change I’ve suggested affects more than just this one 😄