Logo

Programming-Idioms

History of Idiom 96 > diff from v6 to v7

Edit summary for version 7 by :

Version 6

2015-10-18, 16:05:02

Version 7

2015-10-25, 18:56:32

Idiom #96 Check string prefix

Set boolean b to true if string s starts with prefix prefix, false otherwise.

Idiom #96 Check string prefix

Set boolean b to true if string s starts with prefix prefix, false otherwise.

Code
B = string:str(S, Prefix) =/= 0.
Doc URL
http://erldocs.com/current/stdlib/string.html?i=0&search=string:st#str/2
Demo URL
http://tryerl.seriyps.ru/#id=2df3