Trusted answers to developer questions

Definition: Pattern matching

Get Started With Data Science

Learn the fundamentals of Data Science with this free course. Future-proof your career by adding Data Science skills to your toolkit — or prepare to land a job in AI, Machine Learning, or Data Analysis.

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?