Posts

Applications of Regular Expressions in Real Life

Image
Applications of Regular Expressions in Real Life Introduction:     Regular Expressions are useful for numerous practical day to day tasks that a data scientist encounters. They are used everywhere from data pre-processing to natural language processing , pattern matching, web scraping, data extraction and what not! The language accepted by finite automata can be easily described by simple expressions called Regular Expressions. It is the most effective way to represent any language. The languages accepted by some regular expression are referred to as Regular languages. A regular expression can also be described as a sequence of pattern that defines a string. Regular expressions are used to match character combinations in strings. String searching algorithm used this pattern to find the operations on a string.  Regular expressions are often used in Natural Language Processing for named entity extraction eg “Dr [A-Z] [A-Z][a-z]” to match the titular form for a doctor. Thos...