Im trying to use regexp to get whatever’s behind the # in my string “12344dfdfsss#isa”, in this case I wanna get the ‘isa’ out of the string.
I found these answers (How to remove a small part of the string in the big string using RegExp) helpful, but all it returns is ‘true’.
var myString = '12344dfdfsss#isa',
newRG = new RegExp('#(.*)$'),
trimmed = newTrim.test(myString);
I want it to retun ‘isa’ and not true.
Thanks for any help
// I
Try this: