An open API service indexing awesome lists of open source software.

https://github.com/fjc0k/re

regular expression
https://github.com/fjc0k/re

Last synced: 3 months ago
JSON representation

regular expression

Awesome Lists containing this project

README

          

```php
subject($text)
->replace(56); // 5634

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