StringCasesStringCases is a general purpose function for finding occurrences of patterns in a string, picking out subpatterns, and processing the results. Find substrings matching a pattern. In[53]:=  |
Out[53]=
|
Pick apart the matching substring. In[54]:=  |
Out[54]=
|
In[55]:=  |
Out[55]=
|
Restrict the number of matches. In[56]:=  |
Out[56]=
|
You can use a list of rules. In[57]:=  |
Out[57]=
|
You can also give a list of strings as the first argument for efficient processing of many strings (see Tips and Tricks for Efficient Matching for a discussion). In[58]:=  |
Out[58]=
|
In[59]:=  |
Out[59]=
|
|