Trying to apply a regex rule [not match]
See original GitHub issueI am trying these regex but no luck yet? maybe i am doing this wrong?
should not consist of 3 digits at the end of the word.
\d{3}$
\d\d\d$
[0-9]{3}$
Events show its approved
The password set request for bakuru () was approved.
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
Which regular expression operator means 'Don't' match this ...
There's two ways to say "don't match": character ranges, and zero-width negative lookahead/lookbehind. The former: don't match a , b , c or...
Read more >Regular Expression (Regex) Tutorial
To match a character having special meaning in regex, you need to use a escape sequence prefix with a backslash ( \ )....
Read more >Regular expressions
You need to use an “escape” to tell the regular expression you want to match it exactly, not use its special behaviour. Like...
Read more >Regex for rules in CI/CD jobs does not work
Summary Regex in the rule block of a CI job does not work. ... but does not use regex for matching - if:...
Read more >Everything you need to know about Regular Expressions
Regular expressions are useful in any scenario that benefits from full or partial pattern matches on strings. These are some common use cases:....
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
@rocketscientist911
Sorry, I gave you some bad advice here. Your regular expression needs to match the whole string, not just part of it. So to match a password that ended with 3 or more numbers, use the following
.+\d{3,}$
The previous value we used would have rejected passwords that consisted only of 3 digits.
Hope that helps
Ryan
Sorry, I thought I had replied to this thread… I am closing this and thanks a ton.