funch/re

regular expression

Maintainers

Details

github.com/fjc0k/Re

Source

Issues

Installs: 20

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

pkg:composer/funch/re

1.0.0 2016-12-13 04:01 UTC

This package is not auto-updated.

Last update: 2025-10-06 18:50:50 UTC


README

<?php

use Funch\ReStatic as Re;

$text = 1234;

echo Re::pattern('12')
    ->subject($text)
    ->replace(56); // 5634

print_r(
    Re::subject([
        $text,
        'hello, PHP'
    ])->replace([
        '/12/' => '00',
        '/php/i' => 'China'
    ])
);
// Array
// (
//     [0] => 0034
//     [1] => hello, China
// )