Use :extract with regex.

Consider at least installing the 1T - Input Watcher. It significantly improves performance compared to referencing the input directly for this type of real-time validation.