Test, validate and match regular expressions
This regex matches R-type assembly language instructions that take a single register operand, such as MIPS commands like 'jr $ra' or 'mult $t0'. It captures the alphabetic instruction mnemonic, separating whitespace, one or more register tokens (a $ followed by word characters), and a trailing space or newline. Ideal for parsing, validating, or syntax-highlighting assembly source code.