Please see the replies to i wann get some character from a string which has some general good advice and at least a partial solution for you.

Also note that you should not post the same question multiple times. This follow up question is fine to elicit more information, but you should not repost it elsewhere. Remember that the questions that you ask and the answers they receive are a resource other people will use. If you ask the same question in different places the answers will be fragmented and the resource will be less useful to other people.

Please note too that we are not trying to be obstructive when we say "go read the documentation". We are trying to point you to the information that you need so that you have the tools to solve similar problems in the future and so that you know where and how to look for related information.

Generally you will find that we give direct answers to questions that ask "why doesn't this code work? It does this thing and I expected it to do that thing.". We give more general "here's where to look it up" answers to "how do I tackle this general problem" questions.


DWIM is Perl's answer to Gödel

In reply to Re^3: how to use regular expressions read some string from a htm file by GrandFather
in thread how to use regular expressions read some string from a htm file by weihe

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.