[Solved] grep with python to match string inside quotes in html files [closed]

[ad_1]

That’ll do the trick

import re

s=""text" "some""
res = re.subn('"([^"]*)"', '<em>\\1</em>', s)[0]

[ad_2]

solved grep with python to match string inside quotes in html files [closed]