PRODUCTS
Products Overview
Mathematica
Mathematica for Students
Mathematica Home Edition
Wolfram
CDF Player
(free download)
Computable Document Format (CDF)
web
Mathematica
grid
Mathematica
Wolfram
Workbench
Mathematica
Add-Ons
Wolfram|Alpha Products
SOLUTIONS
Solutions Overview
Engineering
Aerospace Engineering & Defense
Chemical Engineering
Control Systems
Electrical Engineering
Image Processing
Industrial Engineering
Materials Science
Mechanical Engineering
Operations Research
Optics
Petroleum Engineering
Biotechnology & Medicine
Bioinformatics
Medical Imaging
Finance, Statistics & Business Analysis
Actuarial Sciences
Data Analysis & Mining
Econometrics
Economics
Financial Engineering & Mathematics
Financial Risk Management
Statistics
Software Engineering & Content Delivery
Authoring & Publishing
Interface Development
Software Engineering
Web Development
Science
Astronomy
Biological Sciences
Chemistry
Environmental Sciences
Geosciences
Social & Behavioral Sciences
Design, Arts & Entertainment
Game Design, Special Effects & Generative Art
Education
STEM Education Initiative
Higher Education
Community & Technical College Education
Primary & Secondary Education
Students
Technology
Computable Document Format (CDF)
High-Performance & Parallel Computing (HPC)
See Also: Technology Guide
PURCHASE
Online Store
Other Ways to Buy
Volume & Site Licensing
Contact Sales
Software
Service
Upgrades
Training
Books
SUPPORT
Support Overview
Knowledge Base
Learning Center
Community & Forums
Training & Free Seminars
Does My Site Have a License?
Wolfram User Portal
COMPANY
About Wolfram Research
News & Events
Wolfram Blog
Partnerships
Employment Opportunities
History of
Mathematica
Stephen Wolfram's Home Page
Contact Us
OUR SITES
All Sites
Wolfram|Alpha
Demonstrations Project
MathWorld
Integrator
Wolfram Functions Site
Mathematica Journal
Wolfram Media
Wolfram
Tones
Wolfram Science
Stephen Wolfram
DOCUMENTATION CENTER SEARCH
New to
Mathematica
?
Find your learning path
»
Mathematica
>
Core Language
>
String Manipulation
>
String Operations
>
StringDrop
>
BUILT-IN MATHEMATICA SYMBOL
Operations on Strings
Special Characters
Tutorials »
|
Drop
StringTake
StringTrim
StringPosition
StringReplacePart
FileNameDrop
See Also »
|
String Manipulation
String Operations
More About »
StringDrop
StringDrop
gives
with its first
n
characters dropped.
StringDrop
gives
with its last
n
characters dropped.
StringDrop
gives
with its
n
character dropped.
StringDrop
gives
with characters
m
through
n
dropped.
StringDrop
gives the list of results for each of the
.
MORE INFORMATION
StringDrop
drops characters
m
through
n
in steps of
s
.
StringDrop
uses the standard
Mathematica
sequence specification.
EXAMPLES
CLOSE ALL
Basic Examples
(3)
Drop the first 4 characters from a string:
Use
InputForm
to show quotes:
Drop from the end of the string:
Drop characters 5 through 10:
Drop the first 4 characters from a string:
In[1]:=
Out[1]=
Use
InputForm
to show quotes:
In[2]:=
Out[2]//InputForm=
Drop from the end of the string:
In[1]:=
Out[1]=
Drop characters 5 through 10:
In[1]:=
Out[1]=
Scope
(4)
Drop character 3 from a string:
Drop every other character:
Drop the last 2 characters from several strings:
StringDrop
works with special characters:
Properties & Relations
(3)
Newline (
) counts as a single character:
StringDrop
works like applying
Drop
to the list of characters:
StringReplacePart
with an empty string can be used like
StringDrop
:
StringReplacePart
can drop several sequences of characters at a time:
Possible Issues
(1)
StringDrop
operates on the raw characters in a string:
SEE ALSO
Drop
StringTake
StringTrim
StringPosition
StringReplacePart
FileNameDrop
TUTORIALS
Operations on Strings
Special Characters
MORE ABOUT
String Manipulation
String Operations
New in 2 | Last modified in 5.1