If you are trying to do a byte formatting operation for filters or the like, you can use the routines we published in the book's code. We have it in Ch 5 I think - the one on searching. I would not use the regex to do this.
Ryan Dunn
Extemporaneous MumblingsThe .NET Developer's Guide to Directory Services Programming