From e07a07a076208b3a50ac488a607c827317cdfac7 Mon Sep 17 00:00:00 2001 From: "Daniel St. Jules" Date: Sat, 19 Mar 2016 17:53:09 -0700 Subject: [PATCH] Add capture group example to readme --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 6c99c66..feac539 100644 --- a/README.md +++ b/README.md @@ -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). ```php -s('fòô ')->regexReplace('f[òô]+\s', 'bàř', 'msr'); // 'bàř' +s('fòô ')->regexReplace('f[òô]+\s', 'bàř'); // 'bàř' +s('fò')->regexReplace('(ò)', '\\1ô'); // 'fòô' ``` ##### removeLeft(string $substring)