Regular expression matching method

Regular expression matching method

A note on how to match regular expressions in Python





Abbreviation for general character set

Shortened form meaning
\d 0~Number 9
\D 0~Other than the number 9
\w Letters, numbers, underlining(Word word w)
\W Other than letters, numbers and underscores
\s Spaces, tabs, line breaks(Blank space s)
\S Other than spaces, tabs and line breaks

Summary of symbols used for regular expressions

+? Matches 0 or 1 occurrences of the previous group.

Recommended Posts

Regular expression matching method
Regular expression Greedy
Regular expression re
Regular expression with pymongo
Date notation regular expression
Regular expression look-ahead, after-yomi
python regular expression memo
Regular expression in Python
Regular expression in Python
Regular expression confirmation quiz!
Data batch extraction method by regular expression from Series
Julia Quick Note [04] Regular Expression
Regular expression manipulation with Python
Regular expression check tool summary
Decompose hostname with co.jp with regular expression
String replacement with Python regular expression
100 language processing knocks 2020: Chapter 3 (regular expression)
Introduction to regular expression processing system
Start / end match in python regular expression
(Python) HTML reading and regular expression notes
Search pythondict dictionary key by regular expression