Stringy icon indicating copy to clipboard operation
Stringy copied to clipboard

preg_replace(): Unknown modifier ']'

Open nvirth opened this issue 6 years ago • 0 comments

Executing these:

use Stringy\Stringy;

$text = Stringy::create('/asd/qwe/');
$text = $text->trim(' \\/');

(A)

With mbstring extension enabled in php.ini
=> It works fine, result is 'asd/qwe'

(B)

Without mbstring => It is buggy, result is '', and there is a php warning: preg_replace(): Unknown modifier ']'

nvirth avatar Mar 12 '19 19:03 nvirth