Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
shortrounddev2
· 3y ago · 0 comments
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
Comments
[–]
kaba0
3y ago
I very hope you are not generating regexes based on user data..
Also, I’m fairly sure $ is a special character in regexes..
[–]
shortrounddev2
OP
3y ago
Not all variables are user data
[–]
samus
3y ago
A template processor implementing regexes should be used for that situation.