Skip to content

preg_replace(): Unknown modifier ']' #194

@nvirth

Description

@nvirth

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 ']'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions