Came across this in the lambda weblog, where the poster said

   The Erlang Bit Syntax extends pattern matching to (de)constructing
   chunks of binary data, such as the bit-encoded headers in network
   protocols and file formats. It's an amazingly handy language
   extension.

The linked description is here:
http://www.erlang.se/euc/00/bit_syntax.html

martin