Hacker News new | past | comments | ask | show | jobs | submit login

If you don't switch between them frequently enough it can be very difficult to deal with. For example, when doing a search in vim I often confuse what needs to be escaped and what doesn't vs a grep. And the escape syntax between perl compatible regexs and mySQL regexs are significantly different.

They are subtle but they can cost valuable time while mentally context switching between them.




The first is BRE vs ERE. Honestly, just use egrep. It behaves more in the way you'd expect.

I'm not really sure what so different about the escape syntax in mySQL. But I'm sure you know.


mySQL regex is a bit of a nightmare. It contains a lot of character classes that can be confusing if you don't use them often. I guess "escape syntax" is the wrong phrase.

http://dev.mysql.com/doc/refman/5.7/en/regexp.html


Ah. I was confused, because it uses Spencer's regex package, which is pretty standard for parsing and matching ERE.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: