我有一个 xml 文件,其中有很多链接和其他一些信息,我想从该 xml 中提取这些链接以将它们放入另一个文本文件中。我正在使用 sublime 3 所以我想要一个正则表达式来搜索 xml 文件中的链接,这里是一些文件
<Row ss:Height="13.8"><Cell ss:Formula="of:=HYPERLINK("http://csr.bu.edu/ftp/asl/asllvd/demos/verify_start_end_handshape_annotations//test_auto_move//signs_mov_separ_signers/Liz_10.mov"; "MOV")"><Data ss:Type="String">MOV</Data></Cell></Row>
<Row ss:Height="13.8"><Cell ss:Formula="of:=HYPERLINK("http://csr.bu.edu/ftp/asl/asllvd/demos/verify_start_end_handshape_annotations//test_auto_move//signs_mov_separ_signers/Tyler_10.mov"; "MOV")"><Data ss:Type="String">MOV</Data></Cell></Row>
<Row ss:Height="13.8"><Cell ss:Formula="of:=HYPERLINK("http://csr.bu.edu/ftp/asl/asllvd/demos/verify_start_end_handshape_annotations//test_auto_move//signs_mov_separ_signers/Naomi_10.mov"; "MOV")"><Data ss:Type="String">MOV</Data></Cell></Row>
<Row ss:Index="7" ss:Height="13.8"><Cell ss:Formula="of:=HYPERLINK("http://csr.bu.edu/ftp/asl/asllvd/demos/verify_start_end_handshape_annotations//test_auto_move//signs_mov_separ_signers/Brady_10.mov"; "MOV")"><Data ss:Type="String">MOV</Data></Cell></Row>
我想提取这些链接是这样的
http://csr.bu.edu/ftp/asl/asllvd/demos/verify_start_end_handshape_annotations//test_auto_move//signs_mov_separ_signers/Liz_10.mov
我怎样才能做到这一点?
不是最好的解决方案,但它有效
(http(s)??).+?(?=")
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句