yitzle
01-31-2007, 07:19 PM
Can I do:
s/((\n{1,3}\.){3})\.\n{1,3}/\1/ # 3 times 1-3 numbers followed by .
to replace eg 123.4.56.7 with 123.4.56? Or would I use \2?
s/((\n{1,3}\.){3})\.\n{1,3}/\1/ # 3 times 1-3 numbers followed by .
to replace eg 123.4.56.7 with 123.4.56? Or would I use \2?