TinyDeskEngineer |
05-19-2023 18:59 |
Test if a string matches a wildcard?
I want to make a plugin which will do something when the server finishes loading a map, and I want to allow for users to set a whitelist/blacklist for maps for which the plugin will take effect on. For simplicity, I want these lists to support wildcards, so for example, ctf_* would match all Capture the Flag maps in TF2, and cs_* would match all Hostage Rescue maps in Counter-Strike games. et cetera. I couldn't find anything about wildcards on the Scripting API Reference, and all of the things I could find on these forums about wildcards seem to be unrelated to what I'm trying to do here.
|