in reply to Re: Re: Strip user-defined words with regexp
in thread Strip user-defined words with regexp

Did you try it?

It prints the first 2 words as defined by the OP.

  • Comment on Re: Re: Re: Strip user-defined words with regexp

Replies are listed 'Best First'.
Re: Re: Re: Re: Strip user-defined words with regexp
by Limbic~Region (Chancellor) on Mar 04, 2004 at 16:22 UTC
    rnahi,
    Yes I did - against the $msg in my post. The problem is my original understanding of the OP's requirements. I was thinking there would be multiple sentences in a given string and the first two words of each sentence was required. There has been clarification of the requirements and you are correct - sorry.

    Cheers - L~R