--- shurly.old	2013-01-24 12:54:57.000000000 -0600
+++ shurly.module	2013-01-24 13:31:49.000000000 -0600
@@ -434,6 +434,20 @@
     );
 
   }
+  
+  $regex = variable_get('shurly_regex');
+  $regex = isset($regex) ? $regex : '/[\/#%&\@\*\{\}\\:\;<>\?\+ \.\,\'\"\$\|`^\[\]]/u';
+  
+  $form['shurly_regex'] = array(
+    '#title' => t('Custom Valid URL RegEx'),
+    '#type' => 'textfield',
+    '#default_value' => $regex,
+    '#size' => 30,
+    '#required' => TRUE,
+    '#description' => t('This is where you can customize the valid url regular extention'),
+  );
+
+  
 
   return system_settings_form($form);
 }
@@ -685,8 +699,9 @@
     return FALSE;
   }
 
-  // disallow: #%&@*{}\:;<>?/+.,'"$|`^[] and space character
-  return preg_match('/[\/#%&\@\*\{\}:\;<>\? \.\,\'\"\$\|`^\[\]]/u', $custom) ? FALSE : TRUE;
+  // Pull in the custom URL validation
+  $regex = variable_get('shurly_regex');
+  return preg_match($regex, $custom) ? FALSE : TRUE;
 }
 
 
