[ create a new paste ] login | about

Link: http://codepad.org/LbHVT9lt    [ raw code | output | fork ]

Python, pasted on Jan 10:
1
2
3
4
5
6
7
8
import re

pattern = re.compile("([^`]+)`?")
data = '"hello world"`42`null`1234`"butts"`"fat people"`1.34'
result = pattern.findall(data)

for i in result:
  print i


Output:
1
2
3
4
5
6
7
"hello world"
42
null
1234
"butts"
"fat people"
1.34


Create a new paste based on this one


Comments: