I have string like below i want to extract the number from the string. so i have used the following regex,it is not removing the last bracket even though i have used global replace.how to write the regex so it removes all the non digit characters even it is in the beginning or in the end


^anchor.