mirror of
https://github.com/danielstjules/Stringy.git
synced 2025-08-14 01:04:06 +02:00
Add capture group example to readme
This commit is contained in:
@@ -686,7 +686,8 @@ to a lack of support in the bundled version of Oniguruma in PHP < 5.6,
|
|||||||
and current versions of HHVM (3.8 and below).
|
and current versions of HHVM (3.8 and below).
|
||||||
|
|
||||||
```php
|
```php
|
||||||
s('fòô ')->regexReplace('f[òô]+\s', 'bàř', 'msr'); // 'bàř'
|
s('fòô ')->regexReplace('f[òô]+\s', 'bàř'); // 'bàř'
|
||||||
|
s('fò')->regexReplace('(ò)', '\\1ô'); // 'fòô'
|
||||||
```
|
```
|
||||||
|
|
||||||
##### removeLeft(string $substring)
|
##### removeLeft(string $substring)
|
||||||
|
Reference in New Issue
Block a user