Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
tankenmate
10 months ago
|
parent
|
context
|
favorite
| on:
Regex character "$" doesn't mean "end-of-string"
Not quite, there are standards for this behaviour (formal and de jure).
danbruc
10 months ago
[–]
And the ones that do not match cat\n with cat$ arguably have it wrong. Both ^ and $ anchor to the start and end of lines, not to the start and end of strings, whether in multi-line mode or not.
Consider applying for YC's Spring batch! Applications are open till Feb 11.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: