split(...)The Perl split command is similar to StringSplit in Mathematica. In[106]:=  |
Out[107]=
|
You can specify the number of blocks to split into in both Perl and Mathematica. In[108]:=  |
Out[108]=
|
A split with capturing parentheses in the pattern, for which the captured substrings are included in the result, can be done in Mathematica using rules in the second argument of StringSplit. Compared to Perl, in Mathematica it is easy to then apply a function to these substrings. In[109]:=  |
Out[110]//InputForm=
|
In[111]:=  |
Out[112]//InputForm=
|
|