Get the contents of cells of given styles in a notebook.

As Expressions...

Get the expressions in a notebooks Input cells:

Out[1]=
  • If no import form is specified, expressions in Input cells are returned wrapped with HoldComplete, while expressions in Output cells are not.

As Cell Expressions...

Get the raw Cell expressions of a notebook's Input cells:

Out[2]=

As Text Strings...

Get the text of Section cells in a notebook:

Out[3]=