Wolfram ResearchProductsPurchasingServices & ResourcesAbout UsOur Sites
Mathematica >
Built-in Mathematica SymbolTutorials »|See Also »

AnchoredSearch

AnchoredSearch
is an option for Find and FindList which specifies whether the text searched for must be at the beginning of a record.
  • With the default setting RecordSeparators->{"\n", "\r\n", "\r"}, AnchoredSearch->True specifies that the text must appear at the beginning of a line.
Find lines starting with "def":
In[1]:=
Click for copyable input
Out[1]=
 
Find lines with "def" anywhere in the line:
In[1]:=
Click for copyable input
Out[1]=
New in 2
© 2008 Wolfram Research, Inc. japanese.gif
Ask a question about this page  |  Suggest an improvement  |  Leave a message for the team