[TxMt] Zap gremlins
Trevor Harmon
trevor at vocaro.com
Thu Mar 23 02:24:36 UTC 2006
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2363 bytes
Desc: not available
URL: <http://lists.macromates.com/textmate/attachments/20060322/ffdd29eb/attachment.p7s>
More information about the textmate
mailing list