I am awful at regex, and have been trying to teach myself.
In order to practice I am trying to remove all numbers and an underscores from a string.
I have been able to remove the numbers with the following, but the combination of both is bamboozling me.
var name = $(this).attr('id').replace(/\d+/g, '');
I am not sure how to combine the two. The following is one of my many efforts but to no avail.
var name = $(this).attr('id').replace(/\d+/\/_/g, '');