Binary matching

Inswitch Solutions - Erlang Evaluation <>
Mon Dec 20 15:39:03 CET 2004

Does someone know why the following binary matching fails?
 <<X:7/binary, Rest/binary>> = <<0>>

Is there an elegant way to group an octect binary in seven bits values?
For example eight characters (1 character = 1 byte) in seven octects.

Eduardo Figoli
INSwitch Solutions

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the erlang-questions mailing list