Wolfram Language
Paclet Repository
Community-contributed installable additions to the Wolfram Language
Primary Navigation
Categories
Cloud & Deployment
Core Language & Structure
Data Manipulation & Analysis
Engineering Data & Computation
External Interfaces & Connections
Financial Data & Computation
Geographic Data & Computation
Geometry
Graphs & Networks
Higher Mathematical Computation
Images
Knowledge Representation & Natural Language
Machine Learning
Notebook Documents & Presentation
Scientific and Medical Data & Computation
Social, Cultural & Linguistic Data
Strings & Text
Symbolic & Numeric Computation
System Operation & Setup
Time-Related Computation
User Interface Construction
Visualization & Graphics
Random Paclet
Alphabetical List
Using Paclets
Create a Paclet
Get Started
Download Definition Notebook
LexicalCases
Guides
LexicalCases
Tech Notes
LexicalCases Overview
Symbols
BoundToken
CountSummaryLowercase
ExpandPattern
LexicalCases
LexicalDispersionPlot
LexicalPattern
LexicalStructure
LexicalSummary
OptionalToken
Sandwich
TextType
ToLexicalPattern
WordToken
$LexicalCasesServices
FaizonZaman`LexicalCases`
O
p
t
i
o
n
a
l
T
o
k
e
n
O
p
t
i
o
n
a
l
T
o
k
e
n
[
l
p
]
m
a
t
c
h
e
s
l
e
x
i
c
a
l
p
a
t
t
e
r
n
l
p
,
"
"
,
o
r
"
"
D
e
t
a
i
l
s
a
n
d
O
p
t
i
o
n
s
Examples
(
1
)
Basic Examples
(
1
)
Search for a LexicalPattern containing an optional token
I
n
[
1
]
:
=
L
e
x
i
c
a
l
C
a
s
e
s
"
t
h
i
s
i
s
a
c
o
o
l
s
t
r
i
n
g
.
t
h
i
s
i
s
a
s
t
r
i
n
g
.
"
,
"
t
h
i
s
i
s
a
"
~
~
O
p
t
i
o
n
a
l
T
o
k
e
n
[
"
c
o
o
l
"
]
~
~
"
s
t
r
i
n
g
"
[
"
D
a
t
a
"
]
O
u
t
[
1
]
=
{
M
a
t
c
h
t
h
i
s
i
s
a
c
o
o
l
s
t
r
i
n
g
,
P
o
s
i
t
i
o
n
{
{
1
,
2
1
}
}
,
M
a
t
c
h
t
h
i
s
i
s
a
s
t
r
i
n
g
,
P
o
s
i
t
i
o
n
{
{
2
4
,
3
9
}
}
}
S
e
e
A
l
s
o
L
e
x
i
c
a
l
P
a
t
t
e
r
n
T
e
c
h
N
o
t
e
s
▪
L
e
x
i
c
a
l
C
a
s
e
s
O
v
e
r
v
i
e
w
R
e
l
a
t
e
d
G
u
i
d
e
s
▪
L
e
x
i
c
a
l
C
a
s
e
s
R
e
l
a
t
e
d
L
i
n
k
s
▪
L
e
x
i
c
a
l
C
a
s
e
s
G
i
t
H
u
b
R
e
p
o
s
i
t
o
r
y
"
"