Hacker News new | past | comments | ask | show | jobs | submit login

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: