funch / re
regular expression
Installs: 20
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/funch/re
Requires
- php: >=5.6.0
Requires (Dev)
- phpunit/phpunit: ^5.7
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 // )