View Single Post
ts2do
Senior Member
Join Date: Mar 2004
Old 08-09-2007 , 18:00   Re: Content Replacer
Reply With Quote #6

I want to pass this by you guys to see what you think:
For wildcards, you can use : to match files within subdirectories also and * to match only one directory...
Examples:
models/*.mdl will not match models/alpha/beta.mdl
models/alpha*/gamma.mdl will match models/alphabeta/gamma.mdl
models/:.mdl will match models/alpha/beta.mdl

For further replacement depth, you could also have models/v_*.mdl to replace view models. For the replacement, you could use models/replacement/v_*.mdl to insert the original matched text back in. I would make this on an if-exist basis, so the server would check if a replacement for a certain model exists and if not, will not replace it.
__________________
ts2do is offline
Send a message via AIM to ts2do