I want to replicate the following code using RegularExpression instead of StartOfLine:
In[1]:= StringSplit["line1\nline2\nline3",StartOfLine]//InputForm
Out[1]={"line1\n", "line2\n", "line3"}
Failed Attempt:
In[34]:= StringSplit["line1\nline2\nline3",RegularExpression["^/m"]]//InputForm
Out[34]= {"line1\nline2\nline3"}
How can I get this to work using Mathematica's flavor of regex?
