fix quotation mark
This commit is contained in:
parent
595a249a04
commit
e7c1ffea2f
@ -95,7 +95,7 @@ To study, it is better to use interactive python interpreter, preferably ipython
|
|||||||
```
|
```
|
||||||
import re
|
import re
|
||||||
|
|
||||||
text = 'Ala has a cat and hammock, and 150 bananas.
|
text = 'Ala has a cat and hammock, and 150 bananas.'
|
||||||
|
|
||||||
re.search('ma',text)
|
re.search('ma',text)
|
||||||
re.match('ma',text)
|
re.match('ma',text)
|
||||||
@ -127,7 +127,7 @@ re.search('ma(\d)? bananas', 'Ala has bananas')
|
|||||||
re.search('\d+ bananas', 'Ala has 10 bananas or 20 bananas')
|
re.search('\d+ bananas', 'Ala has 10 bananas or 20 bananas')
|
||||||
re.search('\d+ bananas$', 'Ala has 10 bananas or 20 bananas')
|
re.search('\d+ bananas$', 'Ala has 10 bananas or 20 bananas')
|
||||||
|
|
||||||
text = 'Ala has a cat and hammock, and 150 bananas.
|
text = 'Ala has a cat and hammock, and 150 bananas.'
|
||||||
|
|
||||||
re.search('\d+ bananas',text)
|
re.search('\d+ bananas',text)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user