Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/sharepoint/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Regex 记事本++;高级替换功能_Regex_Notepad++ - Fatal编程技术网

Regex 记事本++;高级替换功能

Regex 记事本++;高级替换功能,regex,notepad++,Regex,Notepad++,我在html文件中有这行代码,我需要从中删除一些行 <div class="viewpoint"> <h2>View (2)</h2><a href="./Viewpoints — 100 MOUNT ST160506.nwd_files/vp0002.jpg" title="View (2)"><img src="./Viewpoints — 100 MOUNT ST160506.nwd_files/vp0002.jpg"></

我在html文件中有这行代码,我需要从中删除一些行

<div class="viewpoint">
<h2>View (2)</h2><a href="./Viewpoints — 100 MOUNT ST160506.nwd_files/vp0002.jpg" title="View (2)"><img src="./Viewpoints — 100 MOUNT ST160506.nwd_files/vp0002.jpg"></a><span class="namevaluepair"><span class="name">Camera Position</span><span class="value">112.933ft,&nbsp;
    93.975ft,&nbsp;
    145.095ft</span></span><div class="comments">
<div class="spacer"></div>
<div class="comment">
<h4>Comment 2</h4><span class="namevaluepair"><span class="name">Status</span><span class="value">New</span></span><span class="namevaluepair"><span class="name">User</span><span class="value">User1</span></span><span class="namevaluepair"><span class="name">Text</span><span class="value">Grid G4 - Level B5</span></span>2016/5/9&nbsp;
  0:45:10</div>
<div class="spacer"></div>
</div>ARC and STR to coordinate slab edge and raft profile<div class="spacer"></div>
</div>

视图(2)摄像机位置112.933英尺,
93.975英尺,
145.095英尺
评论2现状WUSERUSER1TEXTGRID G4-级别B52016/5/9
0:45:10
弧形和STR以协调板边缘和筏板剖面
以后有什么事吗

</a>

应删除至单词“网格…”

我尝试了不同的方法,但没有结果

此外,上述代码对每个图像重复多次(即vp0001.jpg、vp0002.jpg等)

尝试以下方法:

查找内容:
+?网格

替换为:
Grid

搜索模式:
正则表达式
。匹配换行符

这就产生了

<div class="viewpoint">
<h2>View (2)</h2><a href="./Viewpoints — 100 MOUNT ST160506.nwd_files/vp0002.jpg" title="View (2)"><img src="./Viewpoints — 100 MOUNT ST160506.nwd_files/vp0002.jpg"></a> Grid G4 - Level B5</span></span>2016/5/9&nbsp;
  0:45:10</div>
<div class="spacer"></div>
</div>ARC and STR to coordinate slab edge and raft profile<div class="spacer"></div>
</div>

视图(2)电网G4——B52016/5/9级
0:45:10
弧形和STR以协调板边缘和筏板剖面
如果这不正确,请使用所需的输出更新op

尝试以下操作:

查找内容:
+?网格

替换为:
Grid

搜索模式:
正则表达式
。匹配换行符

这就产生了

<div class="viewpoint">
<h2>View (2)</h2><a href="./Viewpoints — 100 MOUNT ST160506.nwd_files/vp0002.jpg" title="View (2)"><img src="./Viewpoints — 100 MOUNT ST160506.nwd_files/vp0002.jpg"></a> Grid G4 - Level B5</span></span>2016/5/9&nbsp;
  0:45:10</div>
<div class="spacer"></div>
</div>ARC and STR to coordinate slab edge and raft profile<div class="spacer"></div>
</div>

视图(2)电网G4——B52016/5/9级
0:45:10
弧形和STR以协调板边缘和筏板剖面

如果这不正确,请使用所需的输出更新op

您能否清楚地显示示例文本以及替换内容的外观?您能否清楚地显示示例文本以及替换内容的外观?