The art of regular expression

Regular expression is a powerful tool to do text search. It is the foundation of a lot of textual analysis research, though today’s textual analysis in computer science has gone far beyond text search. Regular expression operations are programming language independent. Any modern programming language supports regular expression operations well. So, if someone tells you that PERL is the best language to do text search (or textual analysis), that is plainly wrong.

Writing regular expression is work of art! You can find building blocks of regular expression here. I create this post to gather examples of regular expression that will solve certain text search questions. I will grow this post continuously.

This entry was posted in Python. Bookmark the permalink.

1 Response to The art of regular expression

  1. Victor Wang says:

    Highly recommend, https://regex101.com, which is an online regex engine for debugging your regular expressions in real-time.

Leave a Reply

Your email address will not be published. Required fields are marked *