I am relatively new to RegEx and am trying to achieve something which I think may be quite simple for someone more experienced than I.
I would like to construct a snippet in JavaScript which will take an input and strip anything before and including a specific character - in this case, an underscore.
Thus 0_test
, 1_anotherTest
, 2_someOtherTest
would become test
, anotherTest
and someOtherTest
, respectively.
Thanks in advance!