0
follows the code:
$ER = '[\/]?([?]?pag=[a-zA-Z0-9_-]*)(&var1=[a-zA-Z0-9_-]*)?(&var2=[a-zA-Z0-9_-]*)?(&var3=[a-zA-Z0-9_-]*)?(&var4=[a-zA-Z0-9_-]*)?'; // A ER que separa as vars
$wURL = W_URL;
$http = 'http://';
if( $https || $_SERVER["SERVER_PORT"] != 80 ){
$url_site = str_replace('http:', 'https:', URL_SITE);
}else{
$url_site = URL_SITE;
}
$_save_pag = '';
//Executa o rewrite somente quando estiver definido para tal
if($doRewrite == true){
if(empty($str) && preg_match($ER,$str,$registers)){
error:
PHP Warning: preg_match(): Unknown Modifier '?' in /home/sisv2/sis_adm/includes/functions/rewrite.func.php on line 17
What is the regular expression?
– Rodrigo Rigotti
$ER = '[/]? ([? ]? pag=[a-za-Z0-9_-])(&var1=[a-za-Z0-9_-])?(&var2=[a-za-Z0-9_-])?(&var3=[a-za-Z0-9_-])?(&var4=[a-za-Z0-9_-]*)?';
– user22753
Supplement the question with regular expression.
– Rodrigo Rigotti
ready put there
– user22753