On Sun, Jan 24, 2016 at 7:05 PM, <rashapoo@xxxxxxxxx> wrote: > I guess the escape character (which is not needed in, say, Notepad++) threw > me a bit. Notepad ++ is, AFAIK, an editor, it SHOULD (within reason) let you write any text. The double quote is needed due to the quoting rules of the language. You want the regexp engine to see the characters leftp, dot, rightp, backslash, one. But backslah is the scape character in strings ( in many languages ), so you need to escape it too. The same happens in, for example, C and Java. To put those five chars in a string you need "(.)\\1". If you send "(.)\1" to a C compiler it will build the string leftp, dot, rightp, SOH=(char)(1). It will arrive to the backslash when parsing, see it is followed by a digit less than 8, interpret it as an octal escape, and emit the SOH. Francisco Olarte. -- Sent via pgsql-general mailing list (pgsql-general@xxxxxxxxxxxxxx) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general