20 Comments - Last post 39 minutes ago by Fnord
19 Comments - Last post 1 hour ago by DanteOP
161 Comments - Last post 2 hours ago by wigglenose
13 Comments - Last post 3 hours ago by VicViperV
1,961 Comments - Last post 8 hours ago by Gamy7
1,042 Comments - Last post 9 hours ago by sensualshakti
769 Comments - Last post 10 hours ago by OwieczkaDollyv21
55 Comments - Last post 50 seconds ago by Stefanos13
451 Comments - Last post 2 minutes ago by WaxWorm
20 Comments - Last post 5 minutes ago by Mayanaise
175 Comments - Last post 9 minutes ago by wigglenose
795 Comments - Last post 11 minutes ago by cyan3675
2,228 Comments - Last post 15 minutes ago by whoopy
118 Comments - Last post 18 minutes ago by Mitsukuni
from pyparsing import *
unicode_printables = u''.join(unichr(c) for c in xrange(65536)
if not unichr(c).isspace()) E
def parse_test(text):
label = Word(alphas)+Suppress(':')
value = OneOrMore(Word(unicode_printables)|Literal(','))
group = Group(label.setResultsName('label')+value.setResultsName('value'))
exp = delimitedList(
group,
delim='.'
)
F
return exp.parseString(text)
✿ ☺ ☻ ☹ ☼ ☂ ☃ ⌇ ⚛ ⌨ ✆ ☎ ⌘ ⌥ ⇧ ↩ ✞ ✡ ☭ ← → ↑ ↓ ➫ ⬇ ⬆ ☜ ☞ ☝ ☟ ✍ ✎ ✌ ☮ ✔ ★ ☆ ♺ ⚑ ⚐ ✉ ✄ ⌲ ✈ ♦ ♣ ♠ ♥ ❤ ♡ ♪ ♩ ♫ ♬ ♯ ♀ ♂ ⚥ ⚢ ⚣ ❑ ❒ ◈ ◐ ◑ ✖ ∞ « » ‹ › “ ” ‘ ’ „ ‚ – — | ⁄ [ ] { } § ¶ ¡ ¿ ‽ ⁂ ※ ± × ~ ≈ ÷ ≠ π † ‡ ¥ € $ ¢ £ ß © ® @ ™ ° ‰ … · • ●e
gb
☹ ☺
Comment has been collapsed.