question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Trying to apply a regex rule [not match]

See original GitHub issue

I 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:closed
  • Created 3 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
ryannewingtoncommented, Sep 13, 2020

@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

0reactions
rocketscientist911commented, Sep 21, 2020

Sorry, I thought I had replied to this thread… I am closing this and thanks a ton.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found