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

ChemistryFunctions

Guides

  • Wolfram Chemistry Functions

Symbols

  • AlkaneName
  • AlkaneQ
  • AtomSelector3D
  • AtomSelector
  • BohrModelPlot
  • ChemicalFormulaQ
  • ChemicalReactionQ
  • ConstitutionalIsomersQ
  • DiastereomersQ
  • EmbeddedMoleculeQ
  • EmpiricalFormula
  • EmptyMoleculeQ
  • EnantiomersQ
  • EpimersQ
  • FormatMoleculesAsGraphics
  • HydrocarbonQ
  • ImportComputationalChemistryData
  • IonCounts
  • MoleculeDelete
  • MoleculeGridPlot3D
  • MoleculeGridPlot
  • MoleculeJoin
  • MoleculeManipulate3D
  • MoleculeManipulate
  • MoleculeMirrorPlot3D
  • MoleculePatternQ
  • MoleculePlotOptions
  • MoleculeScaffold
  • MoleculeSubstructureMatches
  • PatternReactionQ
  • PeriodicTablePlot
  • RandomAlkane
  • RandomMolecule
  • RingMoleculeQ
  • RingPattern
  • SmilesPlot
  • StereoisomersQ
WolframChemistry`ChemistryFunctions`
MoleculeSubstructureMatches
​
MoleculeSubstructureMatches
[mol,patt]
returns a list containing the atoms and bonds of the matches to the given substructure.
​
​
MoleculeSubstructureMatches
[mol,patt,n]
returns up to
n
matches.
​
Details and Options

Examples  
(1)
Basic Examples  
(1)
In[1]:=
m1=Molecule["(1R,2R)-1-(3,4-dimethoxyphenyl)-2-(2-methoxyphenoxy)propane-1,3-diol"]
Out[1]=
Molecule
Formula:
C
18
H
22
O
6
Atoms: 46 Bonds: 47

Find a single matching of the phenyl substructure in this molecule:
In[2]:=
MoleculeSubstructureMatches
[m1,MoleculePattern["c1ccccc1"]]
Out[2]=
{Atoms{3,4,5,6,21,22},Bonds{{3,4},{4,5},{5,6},{6,21},{21,22},{22,3}}}
Find all matchings:
In[3]:=
MoleculeSubstructureMatches
[m1,MoleculePattern["c1ccccc1"],All]
Out[3]=
{Atoms{3,4,5,6,21,22},Bonds{{3,4},{4,5},{5,6},{6,21},{21,22},{22,3}},Atoms{13,14,15,16,17,18},Bonds{{13,14},{14,15},{15,16},{16,17},{17,18},{18,13}}}
SeeAlso
FindMoleculeSubstructure
 
▪
MoleculeSubstructureCount
 
▪
MoleculePattern
 
▪
Molecule
RelatedGuides
▪
Wolfram Chemistry Functions
""

© 2025 Wolfram. All rights reserved.

  • Legal & Privacy Policy
  • Contact Us
  • WolframAlpha.com
  • WolframCloud.com