In Message-Id: <4152820A.9080408 / gmx.net> Henrik Horneber <ryco / gmx.net> writes: > What's the best way to test if a string only consists of whitespaces > and newlines? What about this?: string !~ /\S/ where "\S" means complement of "\s". If your white spaces are not equal to "\s", you can use an appropriate character class, say "[^ \n]" for a character except a space and a line feed. -- kjana / dm4lab.to September 23, 2004 Slow and steady wins the race.