How Can I Extract Specific Texts From An HTML File By Using Notepad++ Or Adobe Dreamweaver?
. I want to extract the ID attribute from an HTML file by using Notepad++ or Dreamweaver. Delete all other texts. For Eg:
Solution 1:
- Ctrl+H
- Find what:
<\w+[^>]+(id=".+?").*?>
- Replace with:
$1
- CHECK Wrap around
- CHECK Regular expression
- Replace all
Explanation:
<\w+ # opening tag
[^>]+ # 1 or more not >
(id=".+?") # group 1, id and value
.*? # 1 or more any character, not greedy
> # close tag
Screenshot (before):
Screenshot (after):
Post a Comment for "How Can I Extract Specific Texts From An HTML File By Using Notepad++ Or Adobe Dreamweaver?"