Closed kilgarenone closed 2 years ago
Say I have a section with this text: and positive reviews.{{Citation needed|date=December 2007}} The.
and positive reviews.{{Citation needed|date=December 2007}} The
Then I strip_code() it so I can do a regex re.search() on the resultant string.
strip_code()
re.search()
Things is, in my regex, I need to match for the template too {{Citation needed|date=December 2007}}.
{{Citation needed|date=December 2007}}
Is there a way to do that?
ok didn't know i can do section.__str__(). awesome. thanks!
section.__str__()
Say I have a section with this text:
and positive reviews.{{Citation needed|date=December 2007}} The
.Then I
strip_code()
it so I can do a regexre.search()
on the resultant string.Things is, in my regex, I need to match for the template too
{{Citation needed|date=December 2007}}
.Is there a way to do that?