Mathematica 9 is now available
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.
Mathematica > Core Language > String Manipulation > String Patterns >
Mathematica > Core Language > Rules & Patterns > Patterns > String Patterns >

StartOfString

StartOfString
represents the start of a string for purposes of matching in StringExpression.
Test whether a string starts with an "a":
Replace the first letter in a string:
Remove the leading spaces:
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
Ask a question about this page  |  Suggest an improvement  |  Leave a message for the team