in reply to unable to differentiate last word and intermediate word in a sentence
perl -le '$_=q{hi! how are you, man.};s/([!@#$%^&(),.}{[\]+-])/\\$1/g; +print' hi\! how are you\, man\.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: how insert back slash to a string that has only special characters or mixture of both
by k_manimuthu (Monk) on Sep 06, 2010 at 08:06 UTC | |
|
Re^2: how insert back slash to a string that has only special characters or mixture of both
by ww (Archbishop) on Sep 06, 2010 at 11:42 UTC |