Hacker News new | ask | show | jobs
by emilfihlman 1435 days ago
It's otherwise wrong, too. It shouldn't have ^ or $, and \w matches non word characters. It should be /n[a-z]*g/gi