我想,我想要的是相对简单的:
> Bin = <<"Hello.world.howdy?">>. > split(Bin, "."). [<<"Hello">>, <<"world">>, <<"howdy?">>]
有什么指针吗?
binary:split(Bin,<<".">>).
该模块二进制从EEP31(和EEP9中的溶液中加入)厄茨-5.8(见OTP-8217):
1> Bin = <<"Hello.world.howdy?">>. <<"Hello.world.howdy?">> 2> binary:split(Bin, <<".">>, [global]). [<<"Hello">>,<<"world">>,<<"howdy?">>]