Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
If you can't write a regex without Google, the only person you're hurting is yourself. A hard requirement of any editor I use is regex search capability and groups in my replace string. It's so incredibly powerful. Same with string checks and manipulation, individual string operations can be really slow and take a lot of code.
-
I do that all day. Only when i forget the negative lookbehind syntax phrasing again.
-
@darksideplease yeah, that one gets me too. Although lookbehind isn't supported in JS. 🙁
-
Easy, I have regexr.com memorized. I really only use it as a reference, using the "cheat sheet" panel on the side.
I'd suggest avoiding regular-expressions.info, which unfortunately has a tendency to come up high on searches for anything to do with regex. That site IMO fails at both being a reference and also at being an effective tutorial. It's like expertsexchange, I automatically know not to even bother looking at those results. -
@QoolQuy2000 ++1, that's a new one for me. The reference is amazingly simple and direct!
-
@QoolQuy2000 i used that site some times. it is dense but not very thorough. Look at the about page: the owner describes himself as expert on regular expressions.
-
eldamir12298yFor those that have access to the web, checkout regex101.com
Brilliant application for testing and getting explanations for regexes -
Jappe29168yNo offense, but regex isn't that hard as it looks..
But if I need to search for a regress solution, I go to DuckDuckGo and type in the magic words "regex cheat sheet". -
zfor14868yAchievement unlocked.
I love regex. It was confusing at first. A lot of swear words left my mouth while I was learning it... But now I can't imagine working without it. :) -
nmunro31908yWhich dialect though? Remember there's different dialects of regex. What's valid in one engine might not work in another...
-
tytho23168y/^((?!google).)*$/
Regex that matches a string that does not contain google.
Regex without google.
Had to use google to look up how to do negative lookaheads. -
Necro158yI can do some simple find and replace stuff without documentation but I don't know all of it off the top of my head.
Related Rants
write regex without google
undefined
wk36