Re: splitting text that contains an encrypted value




usenet@xxxxxxxxxxxxxxx wrote:
John W. Krahn wrote:
Three things that may work:

These are, of course, all good answers to the question. For the sake of
completeness I would add a fourth (which is, however, not as good as
any of the three that John mentioned).

You could use a control character as your delimiter (I believe it
highly unlikely that your encrypted password field would contain any
control characters). For example, you could use ctrl-a (chr 1). You
can specify '\ca' (control-a) in a regular expression.

There are several reasons why this is a bad idea, though.

well I was thinking that if you must (ie: what's wrong with a comma
anyway?? most encryption algorithms return hex chars) you could use the
null character: \0

this is done occasionally in the shell with tar or xargs when no other
delimiter will do.

-jp

.