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

You get a giant ass bracket after it. How is it not readable?

“\{a}+\{b}=\{ a + b }\n”

Do you also criticize this? “Price: $${price}”?




Try, for example, generating a regular expression which features backslashes in it. You will get an unreadable mess and probably have to play with it for a while before java will even compile it


I very hope you are not generating regexes based on user data..

Also, I’m fairly sure $ is a special character in regexes..


Not all variables are user data


A template processor implementing regexes should be used for that situation.




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

Search: