WLJS LogoWLJS Notebook

LongestMatch

LongestMatch[p] is a string pattern object matching the longest sequence of characters consistent with the string pattern p.

Examples

StringCases["abcabc", LongestMatch["a" ~~ __ ~~ "c"]]

Please visit the official Wolfram Language Reference for more details.

On this page