Re: Regex with patterns in table field

From: "pgdb" <pgdb(at)gawab(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: Regex with patterns in table field
Date: 2006-04-14 07:45:15
Message-ID: 20060414074515.16756.qmail@gawab.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general


<HTML><DIV class=bgcolor STYLE="background-color: ;"><DIV>
<DIV>Hi Chris,</DIV>
<DIV>&nbsp;</DIV>
<DIV>the&nbsp;query below works for me -</DIV>
<DIV>&nbsp;</DIV>
<DIV>select * from TABLENAME where 'TEXT' ~ pattern;</DIV>
<DIV>&nbsp;</DIV>
<DIV>Thanks for helping!</DIV>
<DIV>&nbsp;</DIV>
<DIV>Regards</DIV>
<DIV>&nbsp;</DIV>
<DIV>chris smith writes: </DIV>
<DIV></DIV>
<DIV>&gt; On 4/14/06, pgdb <PGDB(at)GAWAB(dot)COM>wrote: </DIV>
<DIV>&gt;&gt; </DIV>
<DIV>&gt;&gt; </DIV>
<DIV>&gt;&gt; Hi Andreas, </DIV>
<DIV>&gt;&gt; </DIV>
<DIV>&gt;&gt; strange but I don't see html from my original
email received from the </DIV>
<DIV>&gt;&gt; mailing list, hope this reply is ok:) </DIV>
<DIV>&gt;&gt; </DIV>
<DIV>&gt;&gt; If I'm not wrong, the example you've provided is
trying to return matching </DIV>
<DIV>&gt;&gt; rows from multiple patterns and texts as inputs in
the regex search. </DIV>
<DIV>&gt;&gt; </DIV>
<DIV>&gt;&gt; The text in regular expression have to be just a
single string(with no white </DIV>
<DIV>&gt;&gt; character) for my case. Matching should then be
done with patterns from each </DIV>
<DIV>&gt;&gt; row, returning the row(s) that contain matching
regex pattern(s). Appreciate </DIV>
<DIV>&gt;&gt; any advice. Thanks. </DIV>
<DIV>&gt; </DIV>
<DIV>&gt; This page might be what you're after: </DIV>
<DIV>&gt; </DIV>
<DIV>&gt;
http://www.postgresql.org/docs/8.1/static/functions-matching.html
</DIV>
<DIV>&gt; </DIV>
<DIV>&gt; -- </DIV>
<DIV>&gt; Postgresql &amp; php tutorials </DIV>
<DIV>&gt; http://www.designmagick.com/ </DIV>
<DIV></DIV>
<DIV></DIV></DIV></DIV></HTML>
<DIV>________________________________</DIV>
<DIV>Free POP3 Email from <a href="http://www.gawab.com"
target="_blank">www.gawab.com</a></DIV>
<DIV>Sign up NOW and get your account @gawab.com!!</DIV>

Attachment Content-Type Size
unknown_filename text/html 1.7 KB

In response to

Browse pgsql-general by date

  From Date Subject
Next Message hubert depesz lubaczewski 2006-04-14 08:49:39 Re: corrupted item pointer:???
Previous Message chris smith 2006-04-14 05:29:38 Re: Regex with patterns in table field