Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
shortrounddev2
on Sept 19, 2023
|
parent
|
context
|
favorite
| on:
JDK 21 Release Notes
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
kaba0
on Sept 19, 2023
|
next
[ā]
I very hope you are not generating regexes based on user data..
Also, Iām fairly sure $ is a special character in regexes..
shortrounddev2
on Sept 19, 2023
|
parent
|
next
[ā]
Not all variables are user data
samus
on Sept 19, 2023
|
prev
[ā]
A template processor implementing regexes should be used for that situation.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: