Files
  • main.py
main.py
1
2
3
4
5
6
7
8
9
10
#!/usr/bin/env python
# Copyright 2014 Tomasz Wyderka <[email protected]>
##

regularexpression = "\byellow" # wrong! \b is ASCII backspace character
#regularexpression = "\\byellow" # ok
#regularexpression = r"\byellow" # easier and more intuitive

print regularexpression, repr(regularexpression)
Python 2.7.10 (default, Jul 14 2015, 19:46:27) [GCC 4.8.2] on linux