JQuery Replace string using regex so that we can use it in .find function [duplicate]

How to Replace string using JQuery regex?
ex:
stringVariable.replace(…)
Input: ab’c
Output: ab’c

Input: ab(c
Output: ab(c

tried many regex but didn’t work