Added in 1.9.0

$matchkey

Returns wildcard matchtext that was used in the matching event.

Example

on *:TEXT:*Test*:*:echo -ag Matchkey was $matchkey