({{, (RefLink[StringFormat, paclet:ref/StringFormat])["string"] 
attempts to determine what (RefLink[ImportString, paclet:ref/ImportString]) format could be used to import the string "string".}})

OpenersNotesSection(Spacer1)Details

(RefLink[StringFormat, paclet:ref/StringFormat]) returns a format name of the type used by (RefLink[Import, paclet:ref/Import]) or (RefLink[ImportString, paclet:ref/ImportString]).

(RefLink[StringFormat, paclet:ref/StringFormat]) uses heuristic methods, and may not give correct results, particularly for shorter strings.

(RefLink[StringFormat, paclet:ref/StringFormat]) does not verify that (RefLink[ImportString, paclet:ref/ImportString]) would succeed if applied to "string".

OpenersPrimaryExamplesSection(Spacer1)Examples  (2)

OpenersExampleSection0(Spacer1)Basic Examples  (1)

Guess the format of a string:

StringFormat["1,2\n 3,4\n 5,6\n"]

Import the string:

ImportString["1,2\n 3,4\n 5,6\n"]

OpenersExampleSection1(Spacer1)Scope  (1)

Format interpretation of some strings of data:

StringFormat["abcd 1234"]

StringFormat["1 2 3\n 5 6 7\n 8 9 0\n"]

StringFormat["1,2\n 3,4\n 5,6\n"]

StringFormat["1\t2\n 3\t4\n 5\t6\n"]

({{DocumentationFooterIconsRelatedFunction.png, ({{See Also}, {(RefLink[FileFormat, paclet:ref/FileFormat])  ▪  (RefLink[ImportString, paclet:ref/ImportString])  ▪  (RefLink[BinaryReadList, paclet:ref/BinaryReadList])  ▪  (RefLink[SyntaxQ, paclet:ref/SyntaxQ])  ▪  (RefLink[Hash, paclet:ref/Hash])}})}})

({{DocumentationFooterIconsRelatedGuide.png, ({{Related Guides}, {▪(RefLinkPlain[String Patterns, paclet:guide/StringPatterns])}, {▪(RefLinkPlain[Importing and Exporting, paclet:guide/ImportingAndExporting])}, {▪(RefLinkPlain[Systems-Related String Operations, paclet:guide/SystemsRelatedStringOperations])}, {▪(RefLinkPlain[Internet and Computer Systems Data, paclet:guide/InternetAndWebRelatedData])}, {▪(RefLinkPlain[Converting between Expressions & Strings, paclet:guide/ConvertingBetweenExpressionsAndStrings])}})}})