Scot Robnett wrote at Tue, 04 Jun 2002 16:46:26 +0200: >> He said he wanted to replace all nonalphanumerics, and I was assuming that meant >white space as >> well, regardless of where in the string it is located. >> >> Scot > >>> $foo =~ s/\W*/_/g; >>> >>> http://www.oreilly.com/catalog/regex/
Shouldn't be the regex then s/\W+/_/g to avoid the substitution of zero length parts ;-) Greetings, Janek -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]