Wolfram Language Paclet Repository

Community-contributed installable additions to the Wolfram Language

Primary Navigation

    • 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
    • Get Started
    • Download Definition Notebook
  • Learn More about Wolfram Language

LexicalCases

Guides

  • LexicalCases

Tech Notes

  • LexicalCases Overview

Symbols

  • BoundToken
  • CountSummaryLowercase
  • ExpandPattern
  • LexicalCases
  • LexicalDispersionPlot
  • LexicalPattern
  • LexicalStructure
  • LexicalSummary
  • OptionalToken
  • Sandwich
  • TextType
  • ToLexicalPattern
  • WordToken
  • $LexicalCasesServices
FaizonZaman`LexicalCases`
OptionalToken
​
OptionalToken
[lp]
matches lexical pattern
lp
,
" "
, or
""
​
Details and Options

Examples  
(1)
Basic Examples  
(1)
Search for a LexicalPattern containing an optional token
In[1]:=
LexicalCases
"this is a cool string. this is a string.","this is a"~~
OptionalToken
["cool"]~~"string"["Data"]
Out[1]=
{Matchthis is a cool string,Position{{1,21}},Matchthis is a string,Position{{24,39}}}
SeeAlso
LexicalPattern
TechNotes
▪
LexicalCases Overview
RelatedGuides
▪
LexicalCases
RelatedLinks
▪
LexicalCases GitHub Repository
""

Powered by the Wolfram Cloud More about Wolfram Technology

© 2022 Wolfram Research, Inc. All rights reserved. Terms of Use Privacy Contact Us