He suggested you use regex, not ask him for the finished script with it in -.-
http://www.regular-expressions.info/quickstart.html
Type into mirc:
/help $regex
/help $regml (Youll need it later on)
and example:
if ($regex($1-,/.+ $me .+/i)) {
}
That will make sure that whatever is said only matches your name with spaces around it. You might want to allow for other characters like "s,.!" etc. I HIGHLY recommend you entirely disregard that. mIRC's help function doesn't cover much of regex. regular-expressions.info isn't very user-friendly and basically hard to read/learn from unless you know most of it already. I recommend just looking at other examples and trying things out.
For example,
/(?<!mi)grant(?!ed|ing|o)/Si
Try figuring what that will and will not match using regular-expressions.info ...