Skip to content

Commit

Permalink
Merge pull request #10 from Perevedko/patch-2
Browse files Browse the repository at this point in the history
Update README.md
  • Loading branch information
v2e4lisp committed Aug 13, 2013
2 parents adfe682 + ceede64 commit 6ea42cd
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,15 @@ verbal_expression = VerEx()
```python
# Create an example of how to test for correctly formed URLs
verbal_expression = VerEx()
tester = verbal_expression. \
start_of_line(). \
find('http'). \
maybe('s'). \
find(':https://'). \
maybe('www.'). \
anything_but(' '). \
tester = (verbal_expression.
start_of_line().
find('http').
maybe('s').
find(':https://').
maybe('www.').
anything_but(' ').
end_of_line()
)

# Create an example URL
test_url = "https://www.google.com"
Expand Down

0 comments on commit 6ea42cd

Please sign in to comment.