Let’s say I have test_23 and I want to remove test_.
test_23
test_
How do I do that?
The prefix before _ can change.
_
Easiest way I think is:
var s = yourString.replace(/.*_/g,"_");