I have the following in a script (this is only a portion)

$regex($5,(.~[a-z]{1}[0-9]{3,4}@*))

It is looking at the [email]ident@host[/email] information of a user. And more specifically at just the ident. Is there a way to limit it to only finding the matches listed? Which would be a letter followed by 3 or 4 numbers ... but I don't want it to trigger on an ident of a letter folled by 3 or 4 numbers that are in turn followed by something else.

i.e.

~y234 (trigger on this ident)
~k3322 (trigger on this ident)

~d893dklal33 (not triggering on this ident)

Thanks in advance