Use regex and grouping to parse the ID to be reported. The last group found is what is reported. If no groups are found, the original ID is reported. Used with cmd swipe idmode 1.
Using 123-45678 as an example:
(.+)-(.+) | Finds 2 groups, 1st is before the hyphen (123), 2nd is after the hyphen (45678). 2nd group will be reported. |
(.+)- | Finds 1 group, anything before the hyphen (123). 1st group will be reported. |
(.+) | Entire string is the group. Entire string will be reported. |
(.+)a | Finds 1 group, anything before the letter 'a'. Since there's no letter 'a' in the ID, no group is found, so entire ID is reported. |
See Also: RFID Card Reader Support