Thx! Tried it and it seemed to work. Even left existing ascii comments i had added alone, letting them come through unchanged. Took me a minute to figure out that all the changes were at the end of the file.
Wonder what the equivalent of Perl chr($1) is for grep? I would think there would be something. Ken >Date: Mon, 17 Mar 2008 10:48:26 -0400 >From: Ronald J Kimball <[EMAIL PROTECTED]> >Subject: Re: regex for converting decimal to ascii? >Message-ID: <[EMAIL PROTECTED]> >Content-Type: text/plain; charset=us-ascii >In-Reply-To: <[EMAIL PROTECTED]> > >On Mon, Mar 17, 2008 at 07:36:24AM -0400, Ken G. Brown wrote: >> I'm trying to figure out a way of converting a list of decimal >> representations of ascii characters, to their ascii character so I do not >> need to do it manually. >> >> (\d+) finds the decimal numbers and \1 in the replace field will put them >> back in, but how do i get them put back in as ascii characters? >> >> Thx for any tips. > >Here's a Perl solution, which you can run as a filter on the selected text. > >#!perl -p > >s/(\d+)/chr($1)/ge; > >Ronald -- ------------------------------------------------------------------------ Have a feature request? Not sure the software's working correctly? If so, please send mail to <[EMAIL PROTECTED]>, not to the list. List FAQ: <http://www.barebones.com/support/lists/bbedit_script.shtml> List archives: <http://www.listsearch.com/bbeditscripting.lasso> To unsubscribe, send mail to: <[EMAIL PROTECTED]>
