Trusted answers to developer questions

Definition: Pattern matching

Get the Learn to Code Starter Pack

Break into tech with the logic & computer science skills you’d learn in a bootcamp or university — at a fraction of the cost. Educative's hand-on curriculum is perfect for new learners hoping to launch a career.

Pattern matching is the process of checking whether a specific sequence of characters/tokens/data exists among the given data.

Regular programming languages make use of regular expressions (regex) for pattern matching.

widget

Pattern matching is used to determine whether source files of high-level languages are syntactically correct. It is also used to find and replace a matching pattern in a text or code with another text/code. Any application that supports search functionality uses pattern matching in one way or another.

RELATED TAGS

pattern
matching
regex
jargon
Copyright ©2024 Educative, Inc. All rights reserved
Did you find this helpful?