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/catalo
]
Subject: RE: Replacing with Regular expressions
Scot Robnett wrote at Tue, 04 Jun 2002 05:13:13 +0200:
>> $foo =~ s/\W*/_/g;
>>
>> http://www.oreilly.com/catalog/regex/
> ...
>
> I want to allow only the a-z, A-Z, and 0-9 characters and I want to
replace all o
Scot Robnett wrote at Tue, 04 Jun 2002 05:13:13 +0200:
>> $foo =~ s/\W*/_/g;
>>
>> http://www.oreilly.com/catalog/regex/
> ...
>
> I want to allow only the a-z, A-Z, and 0-9 characters and I want to replace all
>others with _ when
> writing the file to the server.
>
> Can you tell m
$foo =~ s/\W*/_/g;
http://www.oreilly.com/catalog/regex/
-Original Message-
From: Octavian Rasnita [mailto:[EMAIL PROTECTED]]
Sent: Monday, June 03, 2002 3:06 AM
To: [EMAIL PROTECTED]
Subject: Replacing with Regular expressions
Hi all,
I have a path to a file name
Hi all,
I have a path to a file name. (In a script for uploading files).
I want to allow only the a-z, A-Z, and 0-9 characters and I want to replace
all others with _ when writing the file to the server.
Can you tell me what would be this regular expression?
Thank you.
Teddy,
[EMAIL PROTECTED