regex - Replacing digits immediately after a saved pattern -


searched pattern looks text9

i search (text)9

i want replace \15 text5 instead it's giving me text.

any other character works except digits.

as turns out, pcre-style back-references not work.

so, have use \015 replace text captured first capturing group (\01) , 5.

since there cannot more 99 capturing groups, , both digits after \ treated back-reference group number, \01 interpreted reference first group, , rest literal digits.


Comments

Popular posts from this blog

yii2 - Yii 2 Running a Cron in the basic template -

asp.net - 'System.Web.HttpContext' does not contain a definition for 'GetOwinContext' Mystery -

mercurial graft feature, can it copy? -