I just got a chance to read this and it made my whole day!

Every now and then I experience that kind of situation; sometimes while programming and other times other things.

Regexes can be that way for me too. Can't remember any specifics since it's been a while; but they *do* happen and I always get a chuckle or two out of it...and get gently reminded to stop and think through what I'm doing when I get just a little too robotic in certain aspects of coding.

My most recent nemisis is that the "f" key on my keyboard is failing (I know I should get it fixed or replaced but I'm a notorious procrastinator...and poor speller) and is increasingly not generating the character when it should. Being a touch-typist I have been having to train myself to look more closely while and after I've been typing to be sure I catch it...but the results are sometimes ellusive since the results are actual words and my eye doesn't cath them as easily. Words like "fit" becomes "it", "for" become "or", "four" becomes "our", "flight" become "light" and "fear" becomes "ear". Occasionally (though I can't for the life of me remeber any off the top of my head) even become a bit obscene!

Thanks Lady_Aleena, I needed the lightness today!

ack Albuquerque, NM

In reply to Re: Writing regexes, think ahead just a bit. by ack
in thread Writing regexes, think ahead just a bit. by Lady_Aleena

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.