如何使用记事本+;从HTML文件中提取特定文本+;还是AdobeDreamweaver?
我想使用Notepad++或Dreamweaver从HTML文件中提取ID属性。删除所有其他文本 例如:如何使用记事本+;从HTML文件中提取特定文本+;还是AdobeDreamweaver?,html,notepad++,ocr,dreamweaver,data-entry,Html,Notepad++,Ocr,Dreamweaver,Data Entry,我想使用Notepad++或Dreamweaver从HTML文件中提取ID属性。删除所有其他文本 例如: <div id="header" class="header-blue sticky"> <div id="header-message" class="alert alert-dismissible"> <form id="contact-form" class="custom-form" method="POST" action="https://www.g
<div id="header" class="header-blue sticky">
<div id="header-message" class="alert alert-dismissible">
<form id="contact-form" class="custom-form" method="POST" action="https://www.google.com">
<input id="your-email" type="email" class="form-email" placeholder="Your Email">
<\w+ # opening tag
[^>]+ # 1 or more not >
(id=".+?") # group 1, id and value
.*? # 1 or more any character, not greedy
> # close tag
那我能做什么呢?请帮帮我
.- Ctrl+H
- 查找内容:
]+(id=“.+?”。*?>
- 替换为:
$1
- 检查环绕
- 检查正则表达式
- 全部替换
<div id="header" class="header-blue sticky">
<div id="header-message" class="alert alert-dismissible">
<form id="contact-form" class="custom-form" method="POST" action="https://www.google.com">
<input id="your-email" type="email" class="form-email" placeholder="Your Email">
<\w+ # opening tag
[^>]+ # 1 or more not >
(id=".+?") # group 1, id and value
.*? # 1 or more any character, not greedy
> # close tag
]+#1个或更多不>
(id=“.+?”)#第1组,id和值
.*? # 1个或多个任意字符,不贪婪
>#关闭标签
屏幕截图(之前):
<div id="header" class="header-blue sticky">
<div id="header-message" class="alert alert-dismissible">
<form id="contact-form" class="custom-form" method="POST" action="https://www.google.com">
<input id="your-email" type="email" class="form-email" placeholder="Your Email">
<\w+ # opening tag
[^>]+ # 1 or more not >
(id=".+?") # group 1, id and value
.*? # 1 or more any character, not greedy
> # close tag
屏幕截图(之后):
<div id="header" class="header-blue sticky">
<div id="header-message" class="alert alert-dismissible">
<form id="contact-form" class="custom-form" method="POST" action="https://www.google.com">
<input id="your-email" type="email" class="form-email" placeholder="Your Email">
<\w+ # opening tag
[^>]+ # 1 or more not >
(id=".+?") # group 1, id and value
.*? # 1 or more any character, not greedy
> # close tag
- Ctrl+H
- 查找内容:
]+(id=“.+?”。*?>
- 替换为:
$1
- 检查环绕
- 检查正则表达式
- 全部替换
<div id="header" class="header-blue sticky">
<div id="header-message" class="alert alert-dismissible">
<form id="contact-form" class="custom-form" method="POST" action="https://www.google.com">
<input id="your-email" type="email" class="form-email" placeholder="Your Email">
<\w+ # opening tag
[^>]+ # 1 or more not >
(id=".+?") # group 1, id and value
.*? # 1 or more any character, not greedy
> # close tag
]+#1个或更多不>
(id=“.+?”)#第1组,id和值
.*? # 1个或多个任意字符,不贪婪
>#关闭标签
屏幕截图(之前):
<div id="header" class="header-blue sticky">
<div id="header-message" class="alert alert-dismissible">
<form id="contact-form" class="custom-form" method="POST" action="https://www.google.com">
<input id="your-email" type="email" class="form-email" placeholder="Your Email">
<\w+ # opening tag
[^>]+ # 1 or more not >
(id=".+?") # group 1, id and value
.*? # 1 or more any character, not greedy
> # close tag
屏幕截图(之后):
<div id="header" class="header-blue sticky">
<div id="header-message" class="alert alert-dismissible">
<form id="contact-form" class="custom-form" method="POST" action="https://www.google.com">
<input id="your-email" type="email" class="form-email" placeholder="Your Email">
<\w+ # opening tag
[^>]+ # 1 or more not >
(id=".+?") # group 1, id and value
.*? # 1 or more any character, not greedy
> # close tag
到目前为止,你尝试了什么?我在谷歌上搜索了一个工具网站。但我没有得到任何网站(:(到目前为止你尝试了什么?我在谷歌上搜索了一个工具网站。但是我没有找到任何网站。:(哇……它成功了……你很聪明。我没有语言来表达我的幸福……非常非常感谢……谢谢……谢谢……):)哇……成功了……你很聪明。我没有语言来表达我的幸福……非常感谢……谢谢……谢谢……:)