Exlude databases when including 'all'

Help
will
2006-08-04
2013-05-29
  • will
    will
    2006-08-04

    On line 475 there is the following line

    sed "s/\b$exclude\b//g"

    An attempt to use word boundaries to find the exluded name.  For some reason on my system this does not work.  I have tested on the command line and still no replacement.

    FreeBSD 6.1

    Any help is appreciated.