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


That’ll do the trick

import re

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

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