This is documentation for Mathematica 3, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.2)
 Documentation / Mathematica / Built-in Functions / Input and Output / Data Reading Options  /
WordSeparators

  • WordSeparators is an option for Read, Find and related functions which specifies the list of strings to be taken as delimiters for words.
  • The default setting is WordSeparators -> {" ", "\t"}.
  • Strings used as word separators may contain several characters.
  • With the option setting NullWords -> False, any number of word separators may appear between any two successive words.
  • WordSeparators -> , ... , , ... specifies different left and right separators for words. Words must have a left separator at the beginning, and a right separator at the end, and cannot contain any separators.
  • Strings given as record separators are automatically taken as word separators.
  • See the Mathematica book: Section 2.11.7.
  • See also: RecordSeparators, TokenWords.