diff -r 1bc7e849a264 -r 91127e62f38f plugins/admin/PageGroups.php --- a/plugins/admin/PageGroups.php Sun Oct 07 17:22:25 2007 -0400 +++ b/plugins/admin/PageGroups.php Tue Oct 09 16:14:55 2007 -0400 @@ -602,6 +602,23 @@ echo '
The affecting tag was updated.
'; } } + else if ( $_POST['pg_type'] == PAGE_GRP_REGEX ) + { + $target = $_POST['pg_target']; + if ( empty($target) ) + { + echo '
Please enter an expression to match against..
'; + } + else + { + $target = $db->escape($target); + $q = $db->sql_query('UPDATE '.table_prefix.'page_groups SET pg_target=\'' . $target . '\' WHERE pg_id=' . $edit_id . ';'); + if ( !$q ) + $db->_die(); + else + echo '
The expression to match against was updated.
'; + } + } else if ( $_POST['pg_type'] == PAGE_GRP_CATLINK ) { $target = $_POST['pg_target']; @@ -860,6 +877,22 @@ '; break; + case PAGE_GRP_REGEX: + echo ' + + Regular expression to use:
+ Be sure to include the starting and ending delimiters and any flags you might need.
+ These pages might help: Pattern modifiers • + Pattern syntax
+ Examples: /^(Special|Admin):/i/^Image:([0-9]+)$/
+ Developers, remember that this will be matched against the full page identifier string. This means that /^About_Enano$/ + will NOT match the page Special:About_Enano.
+ + + + + '; + break; case PAGE_GRP_CATLINK: // Build category list