_Added in 1.9.0_ *$matchkey* Returns [[Scripting_Wildcards|wildcard]] matchtext that was used in the matching [[Scripting_Events|event]]. _For some events it returns the value of the [[matchtarget]] instead._ *Example*
on *:TEXT:*Test*:*:echo -ag Matchkey was $matchkey