I need to replace a string that has a random number in it.
This is the string
[Async Chat Thread - #<randomNumber>/INFO]:
Here is what i have tried. the \d was one of my many attempts.
str.replace(/\[Async Chat Thread - #\d\/INFO\]:/gi, "");
I am very new to regex so if someone could please explain how i go about this or what i may be doing wrong.
\dmatches a single digit. Do you want to match more than one digit?