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:
“It was her stern necessity: all things
Are of one pattern made; bird, beast, and flower,
Deceive us, seeming to be many things,
And are but one. Beheld far off, they differ
As God and devil; bring them to the mind,
They dull its edge with their monotony.”
—Ralph Waldo Emerson (18031882)
“Met face to face, these Indians in their native woods looked like the sinister and slouching fellows whom you meet picking up strings and paper in the streets of a city. There is, in fact, a remarkable and unexpected resemblance between the degraded savage and the lowest classes in a great city. The one is no more a child of nature than the other. In the progress of degradation the distinction of races is soon lost.”
—Henry David Thoreau (18171862)