Definition:
Back to the main index of this glossary
>>> import re
>>> english = '"Never increase, beyond what is necessary, the number of entities required to explain anything." -- William of Ockham (1285-1349)'
>>> print re.findall(r'.*\S', english)
['"Never increase, beyond what is necessary, the number of entities required to explain anything." -- William of Ockham (1285-1349)']
>>> print re.findall(r'\Sn', english)
['in', 'on', 'en', 'in', 'an', 'in']
>>> print re.findall(r'\Sn\w+', english)
['increase', 'ond', 'entities', 'anything']
Back to the main index of this glossary
