`binary:match` doesn't seem to support regexp patterns, at least I don't know how to use them in this function. :(
```
7> binary:match(<<"abcd">>, <<".*cd">>).
nomatch
8> re:run(<<"abcd">>, <<".*cd">>).
{match,[{0,4}]}
```