string - What pattern-matching algorithm is this? - Stack Overflow

string - What pattern-matching algorithm is this? - Stack Overflow