StringExpression
Usage
Notes
Further Examples
This finds all cases of the character "a" followed by any character.
In[1]:=
|
Out[1]=
|
Using the named pattern x_ in this way gives the list of all characters following the character "a".
In[2]:=
|
Out[2]=
|
This picks out words containing a double letter.
In[3]:=
|
Out[3]=
|
This capitalizes the first letter in each word. Notice the use of RuleDelayed ( ) so that ToUpperCase does not evaluate before the matching has occurred.
In[4]:=
|
Out[4]=
|
This finds all substrings of length or more that are contiguous palindromic substrings (strings that read the same backwards and forwards).
In[5]:=
|
Out[5]=
|
|