Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
tobyhinloopen
on Nov 28, 2018
|
parent
|
context
|
favorite
| on:
ECMAScript regular expressions are getting better ...
I like the `matchAll` feature. I now use the awesome/awful (depending who you ask) hack using `.replace`:
var matches = []; "12345678".replace(/\d/g, (m) => matches.push(m)); console.log(matches);
Consider applying for YC's Spring batch! Applications are open till Feb 11.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: