diff options
Diffstat (limited to 'examples/position.py')
-rw-r--r-- | examples/position.py | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/examples/position.py b/examples/position.py index 984c018..d88c14a 100644 --- a/examples/position.py +++ b/examples/position.py @@ -1,12 +1,12 @@ from pyparsing import *
-text = """Lorem ipsum dolor sit amet, consectetur adipisicing
-elit, sed do eiusmod tempor incididunt ut labore et dolore magna
-aliqua. Ut enim ad minim veniam, quis nostrud exercitation
-ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis
-aute irure dolor in reprehenderit in voluptate velit esse cillum
-dolore eu fugiat nulla pariatur. Excepteur sint occaecat
-cupidatat non proident, sunt in culpa qui officia deserunt
+text = """Lorem ipsum dolor sit amet, consectetur adipisicing
+elit, sed do eiusmod tempor incididunt ut labore et dolore magna
+aliqua. Ut enim ad minim veniam, quis nostrud exercitation
+ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis
+aute irure dolor in reprehenderit in voluptate velit esse cillum
+dolore eu fugiat nulla pariatur. Excepteur sint occaecat
+cupidatat non proident, sunt in culpa qui officia deserunt
mollit anim id est laborum"""
# find all words beginning with a vowel
@@ -51,5 +51,3 @@ for ivowelInfo in (initialConsWord | locateInitialVowels).searchString(text): if not ivowelInfo:
continue
print(ivowelInfo.locn, ':', ivowelInfo.word)
-
-
|