Python regex: Fix one html close tag -
<div>random contents without < or > , has ( ) <div>
just need fix closing div tag
so looks <div>random contents</div>
i need in python regex.
the input exact first line, there no < or > in random contents
replace
(<div>[^<]*<)(div>)
with
$1/$2
note: bad practice, don't it unless it's absolutely necessary!
Comments
Post a Comment