Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
Python

r"
(?P<number>\d+) (?P<word>\w+)
"
gm

Description

代換搜尋到的兩個group,中間加字

Submitted by anonymous - 6 years ago