@davep Does a USB plug match a USB socket, or does a USB socket match a USB plug?
Purely from a linguistic standpoint, I'd consider the string to be a "static" thing, a value, and the regex to be the "dynamic" thing, an operator. So I'd say the regex is the agent in the statement and that the regex is the one doing the matching.