in reply to Regex for MS Word Special Characters
You can filter character list with [ ] so if A T Y I would be special characters (which of course there aren't, just as an example), then you could remove them from a string with the following simple regex:
If you have the special characters as octal code you could write this like this:$string =~ s/[ATYI]//g;
(The numbers here are just random example numbers).$string =~ s/[\123\124\145]//g;
Please tell me if I missed something or misunderstood you.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Regex for MS Word Special Characters
by omg_wtf_lol (Initiate) on Apr 21, 2008 at 19:43 UTC |