Regular Expressions 101

Community Patterns

1

Match each tag

Python
Match each tag in a lrc file
Submitted by Cricar - 5 months ago
1

emoji-test.txt

Python
emoji-test.txt
Submitted by anonymous - 6 months ago
1

html <Title>

Java 8
htnle
Submitted by erichologist - 7 months ago

匹配中文数字,用于逆向文本标准化

0

Regular Expression
Python

r"
([a-z]\s*)? ( ( [零幺一二两三四五六七八九十百千万点比] |[零一二三四五六七八九十][ ] |(?<=[一二两三四五六七八九十])[年月日号] |(分之) )+ ( (?<=[一二两三四五六七八九十])[a-zA-Z年月日号个只分万亿秒] |(?<=[一二两三四五六七八九十]\s)[a-zA-Z] )? (?(1) |(?(5) |( [零幺一二两三四五六七八九十百千万亿点比] |(分之) ) )+ ) )
"
xig

Description

Loading markdown...
Submitted by HaujetZhao - 9 months ago