In the keys of udev rules, you may use shell-style pattern matching,
known as wild cards. For
example, the character *
can be used as a placeholder for
any characters or ?
can be used for precisely one
arbitrary character.
KERNEL="ts*", NAME="input/%k"
This rule assigns the standard kernel name in the standard directory to a device whose designation begins with the letters "ts". Find detailed information about the use of regular expressions in udev rules in the man page man udev.