Skip to content

re

re provides regular expression matching operations similar to those found in Perl.

Usage

Split

To split a string by multiple delimiters, you can do:

import re
re.split('; |, ', "string")