You said:
My wish is to able to search for the lines that are in bold and print them out.

How would you know whether a given line is "in bold"? There doesn't seem to be anything in the sample data that would convey this sort of information.

The only other occurrence of "bold" in the OP is a comment line next to an "if" condition, which is looking for an html anchor tag in the data. Is there something about html anchor tags that makes you think of a line being "in bold"?

... am still a perl newbie.

That hardly begins to describe your current condition. The current OP turns out to be exactly equivalent in every way to your three previous attempts to get help at PerlMonks, leading us to conclude that there's a bigger problem than just being a newbie.

For whatever reason(s), you are not learning anything -- you don't show any evidence of having read any book, tutorial, or manual about programming in perl, or any of the references that you've been given repeatedly about how to post questions effectively at PerlMonks. You haven't responded to any of the advice you've been given in your previous threads.

Have you been able to figure out that your code as posted in this thread does not compile? Do you know what that means? How about if you try to run the code, read the error messages that you get, and try to fix the problems in the code that the error messages are reporting?

If you don't know how to do that, and you want us to help you with that, you would have to:

  1. Post the exact code that you tried to run (using <code> tags)
  2. Post the exact error messages that you are unable to fix by yourself (again, using <code> tags)

That would be a good start. It would indicate a tremendous amount of progress for you, relative to what you have been able to show us so far.


In reply to Re: REGEX malfunction by graff
in thread REGEX malfunction by rayken

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.