[freetds] FW: 0.82 freebcp: -h option seems to be broken

James K. Lowden jklowden at freetds.org
Wed Sep 4 22:41:42 EDT 2013

On Tue, 3 Sep 2013 12:12:48 +0200
Frediano Ziglio <freddy77 at gmail.com> wrote:

> I don't remember why I removed regex but probably was a portability
> issue. Windows for instance does not support regex. Also the bug
> "Having two kinds of REs is a botch." is not that great. I would
> personally use only extended syntax or even use PCRE
> (http://www.pcre.org/) library instead, it's very portable! And
> well.. Perl re are even much more powerful too! Using POSIX regex
> where available and another library on other systems could be a pain.

I think it was a portability issue.  I have a suggestion for a
replacement library, though.  No dependencies, and very nice


and something like 30 lines of code.  I think it would serve our
purposes.  If not, I would suggest using Henry Spencer's library.  It's
in the public domain, and small enough to include with the FreeTDS
distribution.  I compiled it for windows quite easily once upon a

IMO PCRE is overkill for what we need.  

Regular expressions, by the way, can make for hours of facinating
reading. I particularly Russ Cox on the subject, 


in particular the first link 




More information about the FreeTDS mailing list