The 'l' flag (locale specific matching) has been renamed to 'L'.
diff --git a/Modules/pypcre.c b/Modules/pypcre.c
index 5d41cc1..797d955 100644
--- a/Modules/pypcre.c
+++ b/Modules/pypcre.c
@@ -1755,7 +1755,7 @@
         {
         case '#':
         case 'i':
-        case 'l':
+        case 'L':
         case 'm':
         case 's':
         case 'x':
@@ -2476,7 +2476,7 @@
           options |= PCRE_CASELESS;
           continue;
           }
-        else if ((c = *ptr) == 'l')
+        else if ((c = *ptr) == 'L')
           {
           options |= PCRE_LOCALE;
           continue;