https://github.com/fjc0k/re
regular expression
https://github.com/fjc0k/re
Last synced: 3 months ago
JSON representation
regular expression
- Host: GitHub
- URL: https://github.com/fjc0k/re
- Owner: fjc0k
- Created: 2016-12-13T04:00:53.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2016-12-13T04:02:28.000Z (almost 9 years ago)
- Last Synced: 2025-02-10T11:44:07.794Z (8 months ago)
- Language: PHP
- Size: 1000 Bytes
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
```php
subject($text)
->replace(56); // 5634print_r(
Re::subject([
$text,
'hello, PHP'
])->replace([
'/12/' => '00',
'/php/i' => 'China'
])
);
// Array
// (
// [0] => 0034
// [1] => hello, China
// )
````