"Requirement is the expected behavior of the regex, like a spec, or what should be matched or should not."

Yes, that's what I understood it to mean.

By the way, it's fine to change your post but, if you do, please indicate what you've changed. Why, and how, to do that is explained in "How do I change/delete my post?".

"Not simple a request to ask for code."

Well, your post actually contains no request (or question) at all. If you're not asking for code, what are you asking for?

"Interesting experience for my first post, ..."

What did you find interesting? The greeting? The welcome? The polite request to "please read ..."? The links to site documentation to help you improve your post. The links to Perl documentation that were provided in an attempt to anticipate what might be helpful despite the fact that you hadn't indicated what help you needed?

"... not sure if anyone will try to help me now"

Of course someone will help you; I'd be happy to help you. But, before that happens, you need to help us to help you by stating what help you need.

I thought I'd been pretty clear on that point: "Without knowing what you're having trouble with, it's difficult to formulate a response which helps you.".

-- Ken


In reply to Re^3: Multiline string and one line comments by kcott
in thread Multiline string and one line comments by AskandLearn

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.