This is documentation for Mathematica 6, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.1)
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