Welcome to the CHICKEN Scheme pasting service

python regex split keeping matched strings added by caolanm on Fri Jan 12 18:25:11 2018

>>> import re
>>> re.split("\{\{|\}\}", "one {{two}} three")
['one ', 'two', ' three']
>>> re.split("(\{\{|\}\})", "one {{two}} three")
['one ', '{{', 'two', '}}', ' three']

Your annotation:

Enter a new annotation:

Your nick:
The title of your paste:
Your paste (mandatory) :
Type in the text below:
                     _               
  ___  ___ ___  __ _| |_ _   _  __ _ 
 / _ \/ __/ __|/ _` | __| | | |/ _` |
|  __/\__ \__ \ (_| | |_| |_| | (_| |
 \___||___/___/\__,_|\__|\__,_|\__, |
                               |___/ 
Visually impaired? Let me spell it for you (wav file) download WAV