technically, it is
Some notes:
- you don't need to "capture" the regex match (using brackets) if you don't need references or the like. for a "is/aint matching my nick on word boundaries" check, the regex /\b $+ $me $+ \b/ will suffice
- instead of using $strip, you can use the S switch, e.g. $regex(unstripped text,/yourregex/i
S)
- you're using * for the target (matching both channels and private messages) but use # (chan) in the echo part
- you don't need the ^ event prefix if you don't intend to "halt/haltdef" the text
- it's possible (but not needed of course) to use a regex in the matchtext definition of the on text event itself (using the $ event prefix). e.g.:
on $*:text:$($+(/\b,$me,\b/Si)):*: { stuff }
(the extra $() evaluation is needed in this example case)