Wolfram Language & System 11.0 (2016)|Legacy Documentation

This is documentation for an earlier version of the Wolfram Language.View current documentation (Version 11.2)

FixedOrder

FixedOrder[p1,p2,]
is a grammar rules pattern object that represents a sequence of elements matching p1, p2, , in the fixed order given.

DetailsDetails

ExamplesExamplesopen allclose all

Basic Examples  (2)Basic Examples  (2)

Deploy a grammar that requires elements to appear in a particular order:

In[1]:=
Click for copyable input
Out[1]=

Apply the grammar:

In[2]:=
Click for copyable input
Out[2]=

Extract elements of a string that appear in a particular order:

In[1]:=
Click for copyable input
Out[1]=

By default, elements of StringExpression are already ordered:

In[2]:=
Click for copyable input
Out[2]=
Introduced in 2015
(10.1)