my trigger is mocci.alt
it fires all my alt list however, i was being abused by typing hey mocci alt, it fired my list, how can I prevent that. Also when someone tested it by saying hellohowaboutmoccialt, it fired my trigger. Only need it to be specific to mocci.alt in order to fire the trigger.
my perl regex is mocci.alt
Quick response would be appreciated to reduce abuse. Thanks
Regex help needed...
Re: Regex help needed...
Put ^ at the start of the pattern and $ at the end of the pattern. ^ means it only matches when it's at the start of the line, $ only matches when it's at the end of the line. That, or change it to 'exact match' in tha pattern type.
Re: Regex help needed...
2 invaluable links for regex
http://regexlib.com/CheatSheet.aspx
http://www.myregextester.com/index.php
http://regexlib.com/CheatSheet.aspx
http://www.myregextester.com/index.php
-
- Posts: 154
- Joined: Sun Jul 29, 2012 6:50 am
Re: Regex help needed...
I understand but ^mocci.alt$ still giving me any chars because of . in between. I want the . to be that specific char as the . itself.
Re: Regex help needed...
Replace the "." with "\.".
It's a special character which means any character. The backslash forces it to be taken literally.
It's a special character which means any character. The backslash forces it to be taken literally.