PRODUCTS
Mathematica
Mathematica Home Edition
Mathematica for Students
Mathematica for the Classroom
grid
Mathematica
Wolfram Lightweight Grid Manager
web
Mathematica
Mathematica Player
(free download)
Mathematica Player Pro
Wolfram
Workbench
Mathematica
Applications
SOLUTIONS
Industry
Chemical Engineering
Image Processing
Mechanical Engineering
Petroleum Engineering
Environmental Sciences
Bioinformatics
Data Analysis and Mining
Financial Risk Management
Statistics
Software Engineering
More...
Education
Higher Education
Precollege Education
Students
Technology
Interactive Deployment
High-Performance and Parallel Computing (HPC)
See Also: Technology Guide
PURCHASE
Online Store
Other Ways to Buy
Volume & Site Licensing
Contact Sales
Software
Service
Upgrades
Training
Books
FOR USERS
All User Resources
Product Registration
Technical Support
Customer Service
Developer Support
Does My Site Have a License?
Free Seminars
Learning Center
Training
Custom Group Seminars
Documentation & Examples
Tutorial Screencasts
Video Gallery
Demonstrations Project
Education Portal
Student Resources
COMPANY
About Wolfram Research
News & Events
Wolfram Blog
Employment Opportunities
History of
Mathematica
Stephen Wolfram's Home Page
Contact Us
OUR SITES
Wolfram|Alpha
Demonstrations Project
Wolfram Blog
MathWorld
Integrator
Wolfram Functions Site
Mathematica Journal
Wolfram Library Archive
Wolfram
Tones
Wolfram Science
Stephen Wolfram
DOCUMENTATION CENTER SEARCH
Mathematica
>
Core Language
>
Expressions
>
Expression Structure
>
Atomic Elements of Expressions
>
Built-in
Mathematica
Symbol
Properties of Strings
Newlines and Tabs in Strings
Special Characters
String-Oriented Output Formats
Tutorials »
|
ToExpression
ToString
Characters
StringExpression
RegularExpression
StringQ
SyntaxQ
Import
Export
See Also »
|
Atomic Elements of Expressions
Basic Input & Output in Programs
Expression Structure
Language Overview
Layout & Tables
Low-Level File Operations
Mathematica Syntax
More About »
String
("...")
String
is the head of a character string
"
text
"
.
MORE INFORMATION
Strings can contain any sequence of ordinary or special characters.
»
_String
can be used as a pattern that represents a string.
In
FullForm
, special characters in strings are given as
\[
Name
]
or
\:
code
.
»
If an explicit newline in the string is preceded by a single backslash
\
, the backslash and newline are ignored.
EXAMPLES
CLOSE ALL
Basic Examples
(1)
Enter a string:
In[1]:=
Out[1]=
InputForm
shows quotes:
In[2]:=
Out[2]//InputForm=
Scope
(6)
Generalizations & Extensions
(2)
Applications
(5)
Properties & Relations
(5)
Possible Issues
(5)
SEE ALSO
ToExpression
ToString
Characters
StringExpression
RegularExpression
StringQ
SyntaxQ
Import
Export
TUTORIALS
Properties of Strings
Newlines and Tabs in Strings
Special Characters
String-Oriented Output Formats
MORE ABOUT
Atomic Elements of Expressions
Basic Input & Output in Programs
Expression Structure
Language Overview
Layout & Tables
Low-Level File Operations
Mathematica Syntax
New in 1 | Last modified in 3