[JS] I need help understanding this code.
MisledWater79

I need help on specifically /(?<=\$\(CustomRank{Rank-Name: ).+?(?=}\))/g I don't know what it is and how I can edit it to something different but with similar function.

You are viewing a single comment. View All
Coder100

That's regex. You can use regexr to parse it to explain it to you.

It will return what is in bold: (**CDT**)

First, it checks if there is a $(CustomRank{Rank-Name:. Then, it will match whatever is inside the curly braces. That's it!