Editing a string using regex jquery [duplicate]

This question already has an answer here:

how can i check a string if it contains a val e.g a letter, and if it does i delete it from the string?
my main issue is sending the value

$('.RemoveColumnNormalCol').live("click", function () {
            var st = $(this).attr('columnLetter'); //this can be any letter 
            $('.TotalHeading').each(function () {
                var test = $(this).val();
                var replace = test.replace(/"+ st +"/g, '');


电子邮件地址不会被公开。 必填项已用*标注