Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How should I extract % delimited tags

I want to get the %tagname% from a file and copy them to a dictionary only tagname in python.

like image 838
DukeNukem Avatar asked Nov 23 '25 14:11

DukeNukem


1 Answers

this will get you a list of tags

re.findall("%([^%]+)%", text)
like image 105
Jared Forsyth Avatar answered Nov 26 '25 04:11

Jared Forsyth



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!