Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

Python re.sub Examples

result = re.sub("(d+) (w+)", r"2 1")
result = re.sub("(?<number>d+) (?<word>w+)", r"g<word> g<number>")
Source by lzone.de #
 
PREVIOUS NEXT
Tagged: #Python #Examples
ADD COMMENT
Topic
Name
6+7 =