From: YANAGAWA Kazuhisa Date: 2004-09-23T23:06:58+09:00 Subject: Re: whitespace string only In Message-Id: <4152820A.9080408@gmx.net> Henrik Horneber 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.