encoding - Check if unicode value is in Erlang binary string? -
encoding - Check if unicode value is in Erlang binary string? -
i came across questions on how find value in list , aware of lists:member/2
.
is there lists:member/2
binary strings? need check if value nowadays in binary. imagine this:
value_in_binary(<<"some random data">>, <<"d">>). %> true
does exist? if not, how go implementing function this?
check out binary:match/2,3. example
1> binary:match(<<"some random data">>, <<"d">>). {8,1} 2> binary:match(<<"some random data">>, <<"z">>). nomatch
string encoding binary erlang default
Comments
Post a Comment