in reply to Re: Junking excess string.. junk with s///.
in thread Junking excess string.. junk with s///.

So . matches \n as well?

What's really strange is that, so far, everyone seems to be making sense here. :(

If you say that Regex's are greedy by stopping at the last \n and someone above you says that it stops at the first \n (as in foo\nbar\n becomes foobar\n) how do I know which way the Regex is behaving?

Is it fair to stick a link to my site here?

Thanks for you patience.

  • Comment on Re: Re: Junking excess string.. junk with s///.

Replies are listed 'Best First'.
Re: Re: Re: Junking excess string.. junk with s///.
by Yendor (Pilgrim) on Oct 16, 2003 at 06:27 UTC

    Listen to everyone else. I did some further reading and was corrected by others, and have found myself to be wrong. Sorry for the confusion.