15 Matching Annotations
- Sep 2024
-
github.com github.com
- Jan 2023
-
stackoverflow.com stackoverflow.com
-
I suspect that this is an NP-hard problem. Would you prefer a greedy solution, or a computationally infeasible one?
-
Regex can do many things, but unbaking a cake isn't one of them.
-
- Oct 2021
-
github.com github.com
-
It's a grammar that makes heavy use of regular expressions. So make sure you brush up your skill on backward/forward references and lookarounds, because all these can be used.
-
- Mar 2021
-
blog.codinghorror.com blog.codinghorror.com
-
If you've ever talked about regular expressions with another programmer, you've invariably heard this 1997 chestnut: Some people, when confronted with a problem, think "I know, I'll use regular expressions." Now they have two problems.
-
- Dec 2020
-
stackoverflow.com stackoverflow.com
-
One does not have to escape ] outside of the character class.
-
In regular expressions a dot . means "any character", the plus + means "one or more times", and the question mark ? after this means "try to match this as few as possible times" - which is useful so it won't keep matching past your quote marks
-
- Oct 2020
-
www.postgresql.org www.postgresql.org
-
SQL regular expressions are a curious cross between LIKE notation and common (POSIX) regular expression notation.
-
-
github.com github.com
-
Tables are not yet supported. If you love impossible to read regular expressions, submit a PR!
-
- Sep 2020
- May 2020
-
github.com github.com
-
old_log_entries = old_log.split /(?=commit [0-9a-f]{40})/ # Lookahead assertions FTW
-
-
github.com github.com
-
old_log.split /(?=commit [0-9a-f]{40})/ # Lookahead assertions FTW
-
-
stackoverflow.com stackoverflow.com
-
Visualization by Debuggex
-
- Apr 2020
-
forum.userstyles.org forum.userstyles.org
- Sep 2019
-
github.com github.com
-
I'm using a negative lookahead to mean "ignore all in /node_modules/ unless it's that package" using
-