+ 2
"ord boundary" as in "word boundary"? #without boundaries print(re.search(r'all', 'Wall Street')) #will match "all" in "Wall" #with boundaries print(re.search(r'\ball\b', 'Wall Street')) #will return None because there is no word "all" in "Wall Street"
28th Mar 2019, 6:00 AM
Anna
Anna - avatar