Python Regex re.subn

By Xah Lee. Date: . Last updated: .
re.subn()
Same as re.sub , except returns a tuple:
(new_string, number_of_substitution_made).

Python Regex Functions

Python Regular Expression

Python

Overview

Help

Comment

String

Arithmetic

Boolean

Conditional

Loop

Data Structure

Function and Class

Module

Misc

Regex

Text Processing

Web

Misc