StartOfString

StartOfString
represents the start of a string for purposes of matching in StringExpression.

ExamplesExamplesopen allclose all

Basic Examples (3)Basic Examples (3)

Test whether a string starts with an "a":

In[1]:=
Click for copyable input
Out[1]=

Replace the first letter in a string:

In[1]:=
Click for copyable input
Out[1]=

Remove the leading spaces:

In[1]:=
Click for copyable input
Out[1]//FullForm=
New in 5.1
New to Mathematica? Find your learning path »
Have a question? Ask support »