somewhat confused .. but tried to search / repeat using wildcards
if I have something like:
<blah.... ssf ff>
<bl.... ssf dfggg ff>
<b.... ssf ghhjj fhf>
and I want to replace all of the above lines with, say,
<hh >t
any thoughts / comments on how to do this?
thank
update (thanks for the comments!)
Did I miss something...
my original sample text:
Soo Choi</span>LONGEDITBOX">Apryl Berney
Soo Choi</span>LONGEDITBOX">Joel Franks
Joel Franks</span>GEDITBOX">Alexander Yamato
and I'm trying to get
Soo Choi foo Apryl Berney
Soo Choi foo Joel Franks
Joel Franks foo Alexander Yamato
I tried the output from
name=re.sub("</s[^>]*\">"," foo ",name)
but I missed something ...
thoughts ... thanks
source
share