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

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: