From: | Henry Drexler <alonup8tb(at)gmail(dot)com> |
---|---|
To: | Richard Broersma <richard(dot)broersma(at)gmail(dot)com> |
Cc: | pgsql-novice(at)postgresql(dot)org |
Subject: | Re: opposite of chr(int) |
Date: | 2011-10-06 21:18:22 |
Message-ID: | CAAtgU9QWSjMQgcW0uajNBQAVAkM8pB=Gqt0JqekvywgPEuN2DQ@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-novice |
On Thu, Oct 6, 2011 at 3:57 PM, Richard Broersma <richard(dot)broersma(at)gmail(dot)com
> wrote:
> On Thu, Oct 6, 2011 at 12:42 PM, Henry Drexler <alonup8tb(at)gmail(dot)com>
> wrote:
>
> How about: -- using 9.1
>
> SELECT 'wallawa9kl' ~ '^.{7}\d';
>
> or assuming that you always have 7 letters 1 digit followed by 2
> letters having a fixed width of 10:
>
> SELECT 'wallawa9kl' ~ '^[a-zA-Z]{7}\d[a-zA-Z]{2}$';
>
> --
> Regards,
> Richard Broersma Jr.
>
I believe that would be a regular expression right? I will look that up in
the manual, thank you for the succinct answer.
From | Date | Subject | |
---|---|---|---|
Next Message | Henry Drexler | 2011-10-06 21:19:17 | Re: opposite of chr(int) |
Previous Message | Gary Chambers | 2011-10-06 20:15:41 | Re: opposite of chr(int) |