--- a/libraries/librewrite/rewrite-int.h	2014-10-02 13:49:08.890104000 +0000
+++ b/libraries/librewrite/rewrite-int.h	2014-10-02 13:50:55.738104000 +0000
@@ -56,7 +56,7 @@
  */
 
 #define REWRITE_MAX_MATCH	11	/* 0: overall string; 1-9: submatches */
-#define REWRITE_MAX_PASSES	100
+#define REWRITE_MAX_PASSES	1000
 
 /*
  * Submatch escape char
