On Fri, Jun 23, 2006 at 07:57:01PM -0600, Google Kreme wrote:
> I think, from dealing with base64 encoding several years back, that
> the lines are a preset length and contain no spaces.
>
> That should be enough for you to find the base64 blocks in the text
> using a grep pattern
>
> something like
>
> Find: ^[A-z,1-9/]{76}$
> Repl: <nill>
>
> would find all the lines containing only alphanumerics and the / that
> are exactly 76 characters long.
And comma.
> Test, obviously, for any false positives. I ran it over a 276 MB
> file and did not notice any flase positives, YMMV.
>
> (BTW< A-z works in egrep from the command line to find A-Z and a-z,
> not sure if it works in BBEdit).
Actually, A-z matches any character in the range A to z, which includes
these six characters between Z and a: [ \ ] ^ _ `
If you want to match uppercase and lowercase letters, you should use
[A-Za-z].
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_talk.shtml>
List archives: <http://www.listsearch.com/BBEditTalk.lasso>
To unsubscribe, send mail to: <[EMAIL PROTECTED]>