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.