i want to use Regex in div at HTML in order to replace a certain string, this string is like : age:7Refat"student" or it will be like age:7Refat , i'm using the following command that is ok with the second pattern:
$("#order_list").append($(this).text().replace(new RegExp("age:[0-9]+","g"),''));
but what if i want to use a general command for both patterns, the something is i don't know how to deal with the first pattern as it has double quotes"" , and i can't write:
$("#order_list").append($(this).text().replace(new RegExp("age:[0-9]+"[a-z]"","g"),''));
or
$("#order_list").append($(this).text().replace(new RegExp("price:[0-9]+[\"a-z\"]","g"),''));