3 ms·
Nope: In [3]: re.search("b[l].*e", "blabber") Out[3]: <_sre.SRE_Match at 0x7f2db79ed030> "Matches" means "matches". If they wanted "fully matches", they shou
by StavrosK 9y ago
Nope:
In [3]: re.search("b[l].*e", "blabber")
Out[3]: <_sre.SRE_Match at 0x7f2db79ed030>
"Matches" means "matches". If they wanted "fully matches", they should have specified "^$". That's why anchors exist.
- tobyhinloopen 9y agoYes, I agree. I just explained where it went wrong and that "Match" can mean multiple things. It matches `blabber`, but the match result is `blabbe`.
- deleted 9y ago[deleted]