Raised This Month: $32 Target: $400
 8% 

Regex Help - RestrictNames 1.2a


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Shadypastbrightfuture
Junior Member
Join Date: Sep 2020
Location: Sky
Old 06-17-2021 , 23:15   Regex Help - RestrictNames 1.2a
Reply With Quote #1

I am using RestrictNames plugin to change spammers name. I created few patterns and checked them in online Regex testers but those patterns are not working with this plugin.

For Example:

"Random-Clan | Player(1)"
^Random-Clan[[:blank:]]\|[[:blank:]]Player(\(\d\)|\(\d\d\))?$
^Random-Clan+\s+\|+\s+Player+\[[0-9]\]

I tried both patterns and they are matching in online testers but not in RestrictNames Plugin.

Link of the plugin: https://forums.alliedmods.net/showth...=17363?t=17363
Regex Tester used: https://regex101.com/
Can someone help me with this.
Shadypastbrightfuture is offline
Black Rose
Veteran Member
Join Date: Feb 2011
Location: Stockholm, Sweden
Old 06-18-2021 , 15:28   Re: Regex Help - RestrictNames 1.2a
Reply With Quote #2

Random-Clan\s+\|+\s+Player\([0-9]\)
Not sure if ^ and $ work within the game. You should try without those.
__________________

Last edited by Black Rose; 06-20-2021 at 06:19.
Black Rose is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 13:25.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode