各位好,用perl 處理一段html,想要得到下面的格式,請假各位有什么辦法或者包可以參考,感謝。
類似這種結果:
G=0.34739 87177/250946, GnomAD_exome
G=0.3002 (9400/31314, GnomAD)
……
html:::
<dt>Frequency</dt>
<dd>
<div>
G=0.34739
(87177/250946, GnomAD_exome)
</div><div>
G=0.28384
(35641/125568, TOPMED)
</div><span>
G=0.34196 (41487/121320, ExAC)
</span><span>(<a id="expandfrequency" data-freq-remn="8"
data-is-icon="false" data-section="Summary" data-ga-action="Click-on"
data-ga-label="Frequency" data-targets="#remn_summ_freq" href="https://bbs.csdn.net/topics/#remn_summ_freq"
ref="section=Summary&action=Click-on&label=Frequency">+ 8 more</a>)</span><div class="ui-widget hide_elm" id="remn_summ_freq"><div>
G=0.3002
(9400/31314, GnomAD)
</div><div>
G=0.2776
(3611/13006, GO-ESP)
</div><div>
G=0.335
(1679/5008, 1000G)
</div><div>
G=0.356
(1593/4480, Estonian)
</div><div>
G=0.333
(1283/3854, ALSPAC)
</div><div>
G=0.337
(1249/3708, TWINSUK)
</div><div>
G=0.44
(270/614, Vietnamese)
</div><div>
G=0.26
(155/600, NorthernSweden)
</div></div>
</dd>
</dl>
<dl class="usa-width-one-half">
轉載請註明出處,本文鏈接:https://www.uj5u.com/qita/116615.html
