Skip site navigation (1) Skip section navigation (2)

Re: opposite of chr(int)

From: Richard Broersma <richard(dot)broersma(at)gmail(dot)com>
To: Henry Drexler <alonup8tb(at)gmail(dot)com>
Cc: pgsql-novice(at)postgresql(dot)org
Subject: Re: opposite of chr(int)
Date: 2011-10-07 15:15:38
Message-ID: CABvLTWFzir-4h0QrK=2BxD3PmBrnx=gNZkZQTgVY7BpcfCF5QA@mail.gmail.com (view raw or flat)
Thread:
Lists: pgsql-novice
On Thu, Oct 6, 2011 at 2:49 PM, Henry Drexler <alonup8tb(at)gmail(dot)com> wrote:
> So it is saying look past seven characters "^.{7}" and check that next
> character if it is an interger "\d"
> Is that a correct narrative for what is going on?

Well almost.  I read it as:

Test to see if a pattern exists where

'^'  from the beginning of the text string
'.{7}' match exactly seven characters what ever they happen to be
'\d'  next match exact one numeric character
and then if found ignore the remainder of the string.


-- 
Regards,
Richard Broersma Jr.

In response to

Responses

pgsql-novice by date

Next:From: Henry DrexlerDate: 2011-10-07 16:33:12
Subject: Re: opposite of chr(int)
Previous:From: Henry DrexlerDate: 2011-10-06 21:49:06
Subject: Re: opposite of chr(int)

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group