MZ RegExp and the match function, little help please & thank you

Of course, I'm happy to help! :LZSjoy:
Hey @Tea's Jams sorry to bother ya again lol
but umm.. how would I make this one work also?

1648861315679.png


Sadly now the problem is using a slash breaks it.

Current RegExr:
Code:
(CP\[((\$(\w+)\.)*(\w+)\((\d+)*\))*((\d+)*(\w+))*>((\d+)*(\w+)*)*((\$)*(\w+)\.(\w+)(\(((\d+)*)\)))*\])
Test Text:
poof!\!\CP[999>test/Evil_5] yay!\CP[999>Evil_3] again!\!\CP[999>Evil_6] & animate!\! \SW[$gameVariables.value(1)>true]...\!\SW[1>false] YAY!\! ..again ...\P[1]\SW[$gameVariables.value(1)>1] \!...\SW[1>false]

Looking to get all the \CP parts

Thanks again for all the help 🙂
I really really really do appreciate ya
Haha, here you go, this should do it. This is what I mean by rigid as a stick :LZSlol:
JavaScript:
(CP\[((\$(\w+)\.)*(\w+)\((\d+)*\))*((\d+)*(\w+))*>((\d+)*(\w+)*\/*)*((\$)*(\w+)\.(\w+)(\(((\d+)*)\)))*\])
This is what I mean by rigid as a stick :LZSlol:
LOL :LZSlol: Still a mighty great rigid stick though
Haha, here you go, this should do it.
JavaScript:
(CP\[((\$(\w+)\.)*(\w+)\((\d+)*\))*((\d+)*(\w+))*>((\d+)*(\w+)*\/*)*((\$)*(\w+)\.(\w+)(\(((\d+)*)\)))*\])

Works perfectly and now I can see a bit better on how things are done with that also.
THANK YOU AGAIN! :LZScheeze:
You're very welcome! :LZSjoy:

Original thread: https://forums.rpgmakerweb.com/threads/regexp-and-the-match-function-little-help-please-thank-you.146094/