Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
gnulinux
on July 9, 2022
|
parent
|
context
|
favorite
| on:
AutoRegex
All words starting with the letter "n" and ending with "g", case insensitive >> /^nw*g$/i
This is not right. That should be a "\w" instead of "w".
curiousgal
on July 9, 2022
|
next
[–]
Same with the last one, it should be \d instead of d. Seems like an escape character issue.
emilfihlman
on July 9, 2022
|
prev
[–]
It's otherwise wrong, too. It shouldn't have ^ or $, and \w matches non word characters. It should be /n[a-z]*g/gi
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: