Re: Editing HTML

3 views
Skip to first unread message

Walter Ian Kaye

unread,
Sep 30, 2008, 11:21:57 PM9/30/08
to textwr...@googlegroups.com
At 07:56 a -0700 08/18/2008, philly...@gmail.com didst inscribe
upon an electronic papyrus:

>I need to delete current html meta tags and insert new ones.

Grep Replace: <meta\s+[^>]+>
With: your_new_meta_tag(s)_here

Umm.. wait.. that would multiply stuff... do you know the maximum
number of existing tags? maybe replace with placeholders and then
replace those... anyway, you get the idea.


>I the
>very same HTML page I also need to insert alt image tag descriptions
>for each page.

As someone else mentioned, you should do that manually... well maybe
you could do it semiautomatically, assuming the same graphic appears
in multiple places -- but you definitely need to know *what* alt text
you are adding to *which* image. I mean, if you're gonna put a name
tag on everyone in the room whose name is John, you need to make sure
you don't tag Phil with the name John.

>Question 1: Is there a simple-easy way I can do this (all at once) in
>TextWrangler?

Umm... press 'Replace All' ?

>Question 2: Is there a way to do what I am describing above, on ALL
>my HTML pages of my website.
>Each page needs to have its own unique tags that have their own unique
>text.

If they're unique, how can you automate it? Do you have some kind of
data document from which you could pull the unique text? It doesn't
materialize out of thin air....


-W
::trying a different return address for Google groups:: (testing..1..2..3..)

Reply all
Reply to author
Forward
0 new messages