On Mar 20, 2006, at 6:34 PM, Allan Odgaard wrote:
On 21/3/2006, at 2:51, Trevor Harmon wrote:
[...] Perhaps we simply need an extra command: "Remove non-ASCII Characters in Document".
You might, and you can just create it yourself.
I understand, but what I meant by that was, "I think this should be built-in to TextMate."
Go to the Bundle Editor (Window menu). Locate the current command in the Text bundle. Duplicate it and change it to:
perl -pe 's/[^\t\n\x20-\x7F]//g'
Thanks for the tip! I didn't expect it to be that simple, but that's because I'm always forgetting the power of regex...
Trevor