Test, validate and match regular expressions
This regex matches keyboard shortcut/hotkey combinations, including modifier keys (Ctrl, Alt, Shift) followed by a main key. It can capture a single hotkey like 'Ctrl+C' or a pair of hotkeys separated by comma like 'Ctrl+C, Ctrl+V'. The named groups make it easy to extract the modifiers and main keys separately.