I've been a professional C, Perl, PHP and Python developer.
I'm an ex-sysadmin from the late 20th century.
These days I do more Javascript and CSS and whatnot, and promote UX and accessibility.
Mostly, I think they're great for use outside code. With tools like vim, sed and grep.
In code, I think they can be great, but used in the right way. For example, if you want to know if a string starts with something, and your language provides a code startswith() function, you should use that.
If you want anything more complex, split the regex over multiple lines and comment it. This makes it easier to read, maintain and version-control.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
I think regex are great.
Mostly, I think they're great for use outside code. With tools like vim, sed and grep.
In code, I think they can be great, but used in the right way. For example, if you want to know if a string starts with something, and your language provides a code
startswith()function, you should use that.If you want anything more complex, split the regex over multiple lines and comment it. This makes it easier to read, maintain and version-control.