My input looks like this:
Lorem ipsum dolor sit amet, consectetur adipiscing elit. _4,7,13 Nullam suscipit orci sit amet feugiat facilisis. Curabitur eget 8 ligula malesuada, vehicula 3,6 quam sit amet, _5 tempor velit.
I need to capture every number that's in a comma-separated list preceded by _, individually and using a single regex.
In other words, I need the bolded numbers above:
[4, 7, 13, 5]
I've been trying again and again to make this work without success. I'd like to know if this is even possible before forfeiting and going with multiple expressions.
I'm looking for a solution in Javascript, but obviously any pointer will help.
5isn't in a comma-separated list...