Since the BOM is unicode, you have to use unicode to remove the BOM:
s/\x{feff}//;
But if you use vim, removing the BOM is as simple as loading the file, typing
:set nobomb
and writing the file back to disk.
In reply to Re: Remove ÿþ from a string
by shmem
in thread Remove ÿþ from a string
by AnishaM
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |