in reply to This is Strange!!! Please help me..

Please see How do I compose an effective node title?. A good title lets monks know immediately whether they'll be able to help you. A title such as yours is likely to dissuade monks from helping you.

And now some issues:

  1. You need to quotemeta since your match string contains regular expression Metacharacters ('(' and ')'). You could also manually escape the characters, but you are more likely to run into trouble with that.

  2. You shouldn't use g on a regular expression (or any Modifiers) unless you need it. In this case, it is a bug but not the bug you were hitting.

  3. And in any case, your string does not contain the term you are searching for. The closest occurrence is <Tr><Tc>At transplantation (POD ), without the '0'.

Replies are listed 'Best First'.
Re^2: This is Strange!!! Please help me..
by ambrus (Abbot) on Sep 29, 2010 at 08:55 UTC

    There are cases where, although the node title doesn't say anything useful, you still can't complain because the OP also couldn't have invented a better title. This is one of those cases.

    Examine. The body of the post is good: it contains a code example reduced to minimal and explains what the OP expects it to do and how it fails. The minimal code example doesn't use any advanced features: it doesn't include modules (except for strict) or anything. Until you know the answer, there's no better way to describe the question than "I wrote something very simple in perl and it doesn't work".

    Thanks to tye for explaining this phenomenon to me.

      I should have, with my chiding, included positive reinforcement for the well-formatted and well-considered body of the post. I certainly agree with that point and will try to remember in the future.

      My issue is not with the null-statement title, but with the tone. Whenever I see an exclamation point in a title, let alone three, I interpret it the Perl sense - ! (Please help me). Had the title been "This is Strange - Please help me..", I would not have included the gripe (or better yet, simply "This is Strange"). I should have made this point more clearly - if an old-hand such as yourself misinterpreted my intent, then a new member would undoubtedly have done the same.