<quote>That's some pretty ugly HTML (both versions), so I'm going to hope there are some typos in it.</quote>

Yeap. Not as pretty as it could be, but very ideal for my situation. I need to make pages for phone (almost) as lean as possible while navigatable because the phon is old enough to struggle opening files larger than 50K.

<quote>or if the tags will always be the same, strip it out with a regex.</quote>

Exactly. The tags in any given document will be the same, but the heading title words from which I want to strip the first letter to make link href and name are different, so it needs to find first letter of words and combine them for link ids. Then I use sed to create my TOC at the top of the page. appreciate a kick in the right direction. nap


In reply to Re^2: search and using first letter of words on a line by Anonymous Monk
in thread search and using first letter of words on a line by naphelge

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.