Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/regex/18.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

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/image/5.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 从Dreamweaver中的html标记中删除正斜杠_Regex_Dreamweaver_Slash - Fatal编程技术网

Regex 从Dreamweaver中的html标记中删除正斜杠

Regex 从Dreamweaver中的html标记中删除正斜杠,regex,dreamweaver,slash,Regex,Dreamweaver,Slash,我想使用Dreamweaver中的“查找并替换”功能来搜索元标记,并将标记链接到其中的“/>”,然后将其替换为> 例如: <meta name=..... /> 替换为: <meta name=.... > 我发现这有助于我找到它们:]*\/> 但是我如何替换它们,使所有的元内容都在那里,除了正斜杠 您可以搜索以下内容: <(META[^>]*)\/> ]*)\/> 并替换为: <($1)> 停止使用dreamweaver

我想使用Dreamweaver中的“查找并替换”功能来搜索元标记,并将标记链接到其中的“/>”,然后将其替换为>

例如:

<meta name=..... />

替换为:

<meta name=.... >

我发现这有助于我找到它们:
]*\/>


但是我如何替换它们,使所有的元内容都在那里,除了正斜杠

您可以搜索以下内容:

<(META[^>]*)\/>
]*)\/>
并替换为:

<($1)>


停止使用dreamweaver,因为现在是2000年,sublime text 2或coda甚至记事本++都比这好…看起来我也必须在记事本++中使用正则表达式。所以什么都不用谢