<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;">Hi All,
<br>
<br>
I am new to erlang and I want to write Erlang function that given a
string and a pattern and uses the pattern to split the string into like
this: <br>
<br>
For example if the pattern is "ab" and the string is "acabcabts" the code will return ["ac", "cabts"].
<br>
<br>
If the pattern is "bc" and the string is "bcad" the code returns ["", ad].
<br>
<br>
If the pattern is "ac" and the string is "bcad" the code will return ["bcad", ""].
<br>
<br>
I'm trying to make function using list but still stuck there. Can anybody help me? Thank's so much.</td></tr></table><br>