Replace all HTML tags with a comma
Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard
Replace all HTML tags with a comma
I need to replace the tags here with commas so I can turn it into a .cvs file. I know I will end up with multiple commas, but that is OK. I can do another replace and change ,, to ,
-
- Posts: 2461
- Joined: Sun Mar 02, 2003 9:22 pm
Have you tried the example for macros?
You could use a variation of the first example for macros. The basic version is marking the entire tag. The example explains how to use DEL key to delete a HTML TAG and that you can perform this until all HTML TAGs are gone. So additionally to add DEL key you add the introduction of a comma.
Defining the macro in the proper way it will be executed until all the replacements have taken place.
Defining the macro in the proper way it will be executed until all the replacements have taken place.
pbaumann
I can top that: an HTML element (or "tag") can span across multiple lines and attributes don't have to be enclosed in quotations under certain conditions - this is perfectly legal:
Code: Select all
<a
href="one"
title=two
style='color: yellow'
>
-
- Posts: 2461
- Joined: Sun Mar 02, 2003 9:22 pm