I had a string in perl script as below.
Tue Aug��7 03:54:12 2012
Now I need to replace the special character with space.
After removing the special chaacters
Tue Aug 7 03:54:12 2012
Could anyone please help me here for writing the regular expression?
Thanks in advance..
Regards,
GS
Let's say this value is stored in a variable called "$date".
Then you could try something like this -
$date =~ s/[^a-z 0-9:]+/ /ig;
tyler_durden