Skip to content

Commit

Permalink
Revert use of mb_ereg_replace.
Browse files Browse the repository at this point in the history
  • Loading branch information
wdamien committed Oct 10, 2018
1 parent 3332ff0 commit 04840c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/actions/regex/solve.php
Expand Up @@ -101,7 +101,7 @@ function pcreList($pattern, $modifiers, $source, $str) {
}

function pcreReplace($pattern, $modifiers, $text, $input) {
return mb_ereg_replace("/{$pattern}/{$modifiers}", $input, $text);
return preg_replace("/{$pattern}/{$modifiers}", $input, $text);
}

function pcreMatch($pattern, $modifiers, $global, $text) {
Expand Down

0 comments on commit 04840c0

Please sign in to comment.