0

I Have text and I want to use regex expression to find all words come after (Africa is): my code

pattern = r'\africa\sis\s\w+'

re.findall(pattern,a)

the results should contain africa is (some words)

but I got this error

error: bad escape \i at position 0

0 Answers0