Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
thrdbndndn
on March 20, 2024
|
parent
|
context
|
favorite
| on:
Regex character "$" doesn't mean "end-of-string"
Definitely not common, but if you are parsing a text file you're going to use it a lot (say, you're writing a JS parser).
marcosdumay
on March 20, 2024
[–]
You really shouldn't use a lot of regexes for parsing code.
They go only on the tokenizer, if they go somewhere at all.
thrdbndndn
on March 20, 2024
|
parent
[–]
Agreed, it's more about quick and dirty ad hoc capture than full-fledged parser though (like when you want to extract certain object when scraping).
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: