Replace hard coded numbers from 462d5830 with regex so the test passes on downstream projects that may define additional opcodes.