front-endF
Reactiflux4y ago
12 replies
front-end

✅ – mzeeshan – 14-02 Dec 28

hello there.....
RegExp Question....
i'm beginner in RegExp.
i have a variable
search
that contains a search regex e.g
3023597

i'm using
new RegExp(search)
bcz search is dynamic
error is... when search contains
3023597+++
it throws error
Invalid regular expression: /30359+++/: Nothing to repeat

but i want
+++
there
Was this page helpful?