Anyone know perl?

I hve 700wx and I have Magicall software which blocks calls and sms. anyone I have rules in place that require perl to be effective. I'm trying to write a rule that says anyone who texts me "Hey" or "Hi" and has less than 8 alphanumeric characters gets a response. Any suggestions?

I've tried this "Hey"|"Hi"-<\w{8}>