Creates a ByteStringPattern that matches byte strings by binary regex.
The regex matches against raw bytes converted to a Latin-1 string. Use escape sequences like \x00 to match specific byte values.
\x00
// Match bytes starting with 0x00byteStringPatternBinaryRegex(/^\x00/)// Match ASCII "Hello"byteStringPatternBinaryRegex(/Hello/)// Match any digitsbyteStringPatternBinaryRegex(/^\d+$/) Copy
// Match bytes starting with 0x00byteStringPatternBinaryRegex(/^\x00/)// Match ASCII "Hello"byteStringPatternBinaryRegex(/Hello/)// Match any digitsbyteStringPatternBinaryRegex(/^\d+$/)
Creates a ByteStringPattern that matches byte strings by binary regex.
The regex matches against raw bytes converted to a Latin-1 string. Use escape sequences like
\x00to match specific byte values.