TechToFreedom
Published in

TechToFreedom

Regular Expressions in Python

Photo by Jeremy Thomas on Unsplash

Introduction

The regular expression (regex) is a powerful tool to deal with characters/strings. Many programming languages support regex. It could need a whole book to introduce all syntax and features of it. This post will introduce some basic syntax which are very useful in daily programming and demonstrate how we can use regex in Python.

Basic Syntax

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Yang Zhou

Yang Zhou

Senior Full-Stack Engineer | Top Writer | Join me in Medium: https://yangzhou1993.medium.com/membership