Pattern Matching - Pattern Matching and Strings

Pattern Matching and Strings

By far the most common form of pattern matching involves strings of characters. In many programming languages, a particular syntax of strings is used to represent regular expressions, which are patterns describing string characters.

However, it is possible to perform some string pattern matching within the same framework that has been discussed throughout this article.

Read more about this topic:  Pattern Matching

Famous quotes containing the words pattern and/or strings:

    His talent was as natural as the pattern that was made by the dust on a butterfly’s wings. At one time he understood it no more than the butterfly did and he did not know when it was brushed or marred. Later he became conscious of his damaged wings and of their construction and he learned to think and could not fly any more because the love of flight was gone and he could only remember when it had been effortless.
    Ernest Hemingway (1899–1961)

    Love’s the only thing I’ve thought of or read about since I was knee-high. That’s what I always dreamed of, of meeting somebody and falling in love. And when that remarkable thing happened, I was going to recite poetry to her for hours about how her heart’s an angel’s wing and her hair the strings of a heavenly harp. Instead I got drunk and hollered at her and called her a harpy.
    Ben Hecht (1893–1964)