diff -ru bluefish-1.0.5.orig/configure.ac bluefish-1.0.5/configure.ac
--- bluefish-1.0.5.orig/configure.ac	2006-02-05 01:17:58.000000000 +0900
+++ bluefish-1.0.5/configure.ac	2006-03-23 23:16:23.000000000 +0900
@@ -315,6 +315,13 @@
 
 fi
 
+AC_CHECK_HEADER(pcreposix.h, 
+	AC_CHECK_LIB(pcreposix, regcomp,
+        LIBS="$LIBS -lpcreposix"
+        AC_DEFINE(HAVE_PCREPOSIX)
+    )
+)
+
 AC_CHECK_LIB(posix4, nanosleep, 
 	LIBS="$LIBS -lposix4"
 	AC_DEFINE(HAVE_NANOSLEEP),
diff -ru bluefish-1.0.5.orig/src/bluefish.h bluefish-1.0.5/src/bluefish.h
--- bluefish-1.0.5.orig/src/bluefish.h	2006-01-18 23:13:55.000000000 +0900
+++ bluefish-1.0.5/src/bluefish.h	2006-03-23 23:08:50.000000000 +0900
@@ -62,7 +62,9 @@
 #define DIRCHR '/'
 
 #include <sys/types.h>
-#include <regex.h>
+#ifndef OUTPUTBOX_USES_PCREPOSIX
+#  include <regex.h>
+#endif  /*  OUTPUTBOX_USES_PCREPOSIX  */
 #include <sys/types.h>
 #include <sys/stat.h>
 #include <unistd.h>
diff -ru bluefish-1.0.5.orig/src/outputbox.c bluefish-1.0.5/src/outputbox.c
--- bluefish-1.0.5.orig/src/outputbox.c	2005-09-23 22:33:36.000000000 +0900
+++ bluefish-1.0.5/src/outputbox.c	2006-03-23 23:08:22.000000000 +0900
@@ -22,11 +22,14 @@
 
 #include <gtk/gtk.h>
 #include <sys/types.h>
-#include <regex.h>
+//#include <regex.h>
+#include <pcreposix.h>
 #include <stdlib.h>
 #include <string.h> /* strlen() */
 
+#define OUTPUTBOX_USES_PCREPOSIX
 #include "bluefish.h"
+#undef OUTPUTBOX_USES_PCREPOSIX
 #include "outputbox.h" /* myself */
 #include "bf_lib.h"
 #include "document.h"
