Matches a binary literal in the 0b... form (JS, Python, Rust).
/^0b[01]+$/i
Python, JavaScript (ES2015+), Rust, Go, and Java all support 0b binary literals. This regex matches that shape (case-insensitive for the prefix).
Matches a 0b-prefixed binary literal.