Regular Expressions 101

Community Patterns

0

link regex

Python
no description available
Submitted by anonymous - 4 years ago
0

打扫1.0.0.0502

Python
no description available
Submitted by anonymous - 4 years ago
0

short term

Python
no description available
Submitted by anonymous - 4 years ago
0

开票1.0.0.0503

Python
no description available
Submitted by anonymous - 4 years ago
0

换房1.0.0.0503

Python
no description available
Submitted by anonymous - 4 years ago
0

收餐1.0.0.0503

Python
no description available
Submitted by anonymous - 4 years ago
0

income_Frontkn

Python
no description available
Submitted by anonymous - 4 years ago
0

Test

Golang
no description available
Submitted by anonymous - 4 years ago

Todo.txt line pattern (Custom)

1

Regular Expression
Python

r"
^(?:\((?P<imp>[A-Z])\)\ )?(?P<dued>(?:2[0-1][0-9]{2}\-(?:0[0-9]|1[0-2])\-(?:[0-2][0-9]|3[0-1]))|\?)\ (?:\+(?P<proname>[a-zA-Z0-9]+)(?:\#(?P<pronum>[0-9]+))?\ )?(?:\$(?P<startd>2[0-1][0-9]{2}\-(?:0[0-9]|1[0-2])\-(?:[0-2][0-9]|3[0-1]))(?:\^(?P<repeat>\d*(?:D|W|M|Y)(?:\,\d*(?:D|W|M|Y)+)*))?\ )?(?P<todo>.+?(?=(?:\ (?:\@|\&))|$))(?P<contexts>(?:\ \@\S+)*)(?P<tags>(?:\ \&\S+)*)
"
gm

Description

Loading markdown...
Submitted by Francesco Tosello - 7 years ago