Regex. While I understand how it works and how it can be used, it's difficult for me to memorize the right regex that should be used at every point. So I just google whenever I want to make use of it. :)
It's funny in my case. I know enough regex to get by, but I generally need to google to find out how to actually apply it.
Do I need RegExp.prototype.test or String.prototype.match in JS? What are the order of parameters in preg_match in PHP? What are the little parentheses things called in .NET, captures or groups?
Software Developer, Coffee Glutton, Quality Lover
β«β½β»β¬β»β½β«
My name is Tiago Marques and I am curious. I try to learn more about everything, and seek solutions to the problems around me.
Location
Aalborg, Denmark
Education
University College of Northern Denmark (UCN) | CSπ»</>
Regex. While I understand how it works and how it can be used, it's difficult for me to memorize the right regex that should be used at every point. So I just google whenever I want to make use of it. :)
I always have to Google regex. Or copied old code.
I had the same problem, until I found Rubular:
rubular.com/
Bonus tip: making a permalink will also save all the test cases used. Makes for an excellent inline comment!
It's funny in my case. I know enough regex to get by, but I generally need to google to find out how to actually apply it.
Do I need
RegExp.prototype.test
orString.prototype.match
in JS? What are the order of parameters inpreg_match
in PHP? What are the little parentheses things called in .NET, captures or groups?Me too!
Hahaaahaa
I can never remember how it works either. I found this to be helpful, though! regexr.com/
Oh yeah that's a big one
Same here...
BTW, I knew someone must've been written about regular expressions when I read the title.. π
Same here. I can only remember $,,*,+ and /s /w. I always end up up googling an example and going from there.
I was just like that... but then I've found regex101.com/ and now, I'm almost proficiente writing regex!
regex101 is the single best resource I've ever found for regex.