【发布时间】:2018-11-17 01:01:16
【问题描述】:
我有一个 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
我该怎么做?
【问题讨论】:
-
您尝试过的
regex在哪里?这将是一个开始。
标签: regex xml sublimetext3