akelabanda
Programmer
Hi Guys
I have to remove any characters that do not match a SPACE, a-z, A-Z, 0-9 from a line of record that resembles the one below. Here, I have to remove the double quote and retain the rest of the text in the third comma separated field.
255,95017,D0 Ayu"Gila,255
But, I'm looking for a generic reg expression which removes all unwanted characters that are not a SPACE, a-z, A-Z, 0-9.
I've tried doing -
1. $elements[38]=~s/\W//;
2. $elements[38]=~s/![0-9|a-z|A-Z]]//;
It doesn't seem to work.
Any help would be appreciated.
Thanks
Raj
UK's best mobile deals online
I have to remove any characters that do not match a SPACE, a-z, A-Z, 0-9 from a line of record that resembles the one below. Here, I have to remove the double quote and retain the rest of the text in the third comma separated field.
255,95017,D0 Ayu"Gila,255
But, I'm looking for a generic reg expression which removes all unwanted characters that are not a SPACE, a-z, A-Z, 0-9.
I've tried doing -
1. $elements[38]=~s/\W//;
2. $elements[38]=~s/![0-9|a-z|A-Z]]//;
It doesn't seem to work.
Any help would be appreciated.
Thanks
Raj
UK's best mobile deals online