Jump to content

Regular expression


tangogc

Recommended Posts

How can I use the regular expression branding system

 

 

 

In the branding I usually put ]GAMESCLAN.COM[ but the user some time give colors to that and the branding system disable the server.

 

Could some one explain me, please

 

 

 

thanks in advance

 

 

Link to comment
Share on other sites

I have not tired it yet, but I think if you set the "regular Expression" field, TCAdmin will search for the expression within the hostname regardless of where the branding is place.

 

 

 

Example: If you enter "Gamesclan" in the regular expression field, TCAdmin will search the hostname for that string. I believe it can be anywhere in the hostname, which means you could add color format etc...

 

 

 

 

 

So if the hostname was My Server is awesome Gamesclan, it would be ok. But if the user removes the Gamesclan, then it will warn you.

 

 

 

Try it on one of your severs Deigo :smile:

Link to comment
Share on other sites

  • 2 months later...
  • 2 years later...
Regular expressions can be used for things a lot more complicated than that. Take a look at this example:

 

 

 

http://www.tcadmin.com/forum/index.php?t=msg&goto=8996&a mp;rid=3#msg_8996

 

 

I forgot this from a long time, could you please make some example on the regular expression pattern please (the link is dead from the old forum)

 

Thanks in advance LFA and Kevin

Link to comment
Share on other sites

  • 5 months later...
  • 8 months later...

Here's the missing post.

 

What I would find it useful is for the ability to allow your clients to use different brandings. For example:

 

This:

 

[\*\[\+]MyGSP[\*\]\+]

 

Would allow your clients to have 3 different brandings:

 

*MyGSP*

 

[MyGSP]

 

+MyGSP+

 

Or you can allow them to place your name in lowercase:

 

[\*\[\+]MyGSP|mygsp[\*\]\+]

 

This would allow:

 

*MyGSP*

 

[MyGSP]

 

+MyGSP+

 

*mygsp*

 

[mygsp]

 

+mygsp+

 

 

Here is a regular expressions tester that you can use to test your regular expressions:

 

http://ioctl.org/jan/test/regexp.htm

 

And a regular expression reference:

http://www.regular-expressions.info/reference.html

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Terms of Use