I have many text:
var one = 'this_is_first_text#test=4';
var two = 'second_text#test=2';
var three = 'next_text#test=243';
var four = 'last_text_for_this#test=44';
how can i remove for this #test=X ?
I can remove only text:
one.replace('#test=', '');
but hot to remove number?
replace()can take a regular expression as an argument. Thus, you can use the following:\d+will match one or more digits.DEMO.