In <of7d634a67.876492a9-on80257ba2.0039bb20-80257ba2.003eb...@uk.ibm.com>, on 07/08/2013 at 12:25 PM, Martin Packer <martin_pac...@uk.ibm.com> said:
>Why \2 and not \1? I recognise this as a backreference but don't >know what happened to the first one. Per syntax for unnamed capture n is $n and \n. There are also named captures; I don't know which syntax PCRE uses for them, but Perl uses (?<foo>bar), (?'foo"bar), \g{foo} and $+{foo} capture the match bar as foo and to refer back to the match. -- Shmuel (Seymour J.) Metz, SysProg and JOAT Atid/2 <http://patriot.net/~shmuel> We don't care. We don't have to care, we're Congress. (S877: The Shut up and Eat Your spam act of 2003) ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN