in reply to Re: Beginner question about search and replace
in thread Beginner question about search and replace

You may also wish to note that if you're reading the data from a file and don't chomp the trailing newline, the two versions will produce different results.

The first form will result in a trailing ';' because newline is part of the whitespace character class. (\s)

-Greg

  • Comment on Re^2: Beginner question about search and replace