How to get javascript regex to return everything in the string as part of the matches, not just the matched parts
Test string: *This* is a test.[15] I would like[16] To figure _out how_ to do this.[20] RegEx: /[d+]|*.**|_.*_/gu Actual Results: Match 1: *This* Match 2: [15] Match 3: [16] Match 4: _out how_ Match 5: [20] Desired Results: Match 1:…