May-31-2017, 10:39 PM
(This post was last modified: May-31-2017, 10:48 PM by rakhmadiev.)
Hi, I've just started to learn regular expression and can not figure out what I am doing wrong...
For example I want to retrieve only the words written with capital letters AND between <p> symbols:
But I get an empty list []
I would appreciated your help/explanation
For example I want to retrieve only the words written with capital letters AND between <p> symbols:
import re s = re.findall(r'<p>([A-Z]+)<p>','<p> BLABLABLA BLABLAksdjf 123 <p> BLA')The output I would like to see is BLABLABLA and BLABLA
But I get an empty list []
I would appreciated your help/explanation