The following documents should take you two or three hours to read through. After that, it will not be necessary for you to ask us every time you need a simple regexp solution to parsing a simple text file.

If after that you still need additional info you can look at the following:

Ok, that's going to be another four or five hours of reading. But you want to learn this stuff right? Eight hours of free documentation to read and you'll avoid having to ask when your specification changes to want to replace a space followed by a newline with a comma and an asterisk. My point is that each of the questions you've asked may indeed be different questions. But it's like asking, "Now what if I want the elevator to go to the third floor, what do I do then?" And then a day later, "But what if I want it to go to the fourth floor? How would I do that?" And then... "Ok, here's a good one for you. What if I want the elevator to go to the fifth floor?" You can do better than that, I'm confident.


Dave


In reply to Re: Replace only tab space with commas by davido
in thread Replace only tab space with commas by sufi

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.