Hailwood
Hailwood
RReactiflux
Created by Hailwood on 10/7/2022 in #help-js
✅ – Hailwood – 00-51 Oct 7
Ahaha that's much simplier than I had in my head. Nice. Cheers!
13 replies
RReactiflux
Created by Hailwood on 10/7/2022 in #help-js
✅ – Hailwood – 00-51 Oct 7
Hmm, any thoughts on doing it without a lookbehind?
13 replies
RReactiflux
Created by Hailwood on 10/7/2022 in #help-js
✅ – Hailwood – 00-51 Oct 7
13 replies
RReactiflux
Created by Hailwood on 10/7/2022 in #help-js
✅ – Hailwood – 00-51 Oct 7
@Rhys it looks good and works well in chrome etc.. any idea why in safari I'm getting
"Invalid regular expression: invalid group specifier name"?
'hello h-12 lol'.match(/(?<=\s|^)h-(\d*)(?!\S)/gm)
'hello h-12 lol'.match(/(?<=\s|^)h-(\d*)(?!\S)/gm)
13 replies