The web is full of tutorials about regular expressions. But I realized that most of those tutorials lack a thorough motivation.
Why do regular expressions exist?
What are they used for?
What are some practical applications?
Somehow, the writers of those tutorials believe that readers are motivated by default to learn a technology that’s complicated and hard to learn.
Well, readers are not. If you’re like me, you tend to avoid complexity and you first want to know WHY before you invest dozens of hours learning a new skill. Is this you? Then keep reading. (Otherwise, leave now—and don’t tell me I didn’t warn you.)
So what are some applications of regular expressions?
Here’s the ToC that also gives you a quick overview of the regex applications:
Table of Contents
Search and Replace in a Text Editor
Searching Your Operating System for Files
Searching Your Files for Text
Search Engines
Validate User Input in Web Applications
Extract Useful Information With Web Crawlers
Data Scraping and Web Scraping
Data Wrangling
Parsing
Programming Languages
Syntax Highlighting Systems
Lexical Analysis in a Compiler
Formal Language Theory
Read the full article at:
blog.finxter.com/what-are-regular-expressions-used…
~~~
Become a better coder! Download the 5x Python Cheat Sheet Course (PDF). It’s free!
** Click: blog.finxter.com/subscribe/ **
🐍 Cheating in Python? Of course! 🐍
See you soon -- it’s fun! 🤓
~~~
Experts in their fields read more books! Become a Python expert: 📚
... [Book] Coffee Break Python -- blog.finxter.com/coffee-break-python/
... [Book] Coffee Break Python workbook -- blog.finxter.com/coffee-break-python-workbook/
... [Book] Coffee Break NumPy -- blog.finxter.com/coffee-break-numpy/
... [Book] Brain Games Python -- blog.finxter.com/python-brain-games/
... [Book] Python One-Liners -- www.amazon.com/gp/product/B07ZY7XMX8
And become a Python master the fun way!
~~~
Start earning money by creating your own Python coding business (free webina
コメント