Build, test, and debug regular expressions
This regex matches binary strings consisting of at least two 0 or 1 characters followed by a final 1. The whole line must conform, so strings like '101', '0011', or '1101' are accepted, while '10' or '1' are rejected. It is useful for validating binary numbers that end with a set bit, or for filtering lines in log files that represent binary flags with a trailing 1. The 'gm' flags make it apply to each line independently in multiline text.