Re: Selecting all variations of job title in a list - Mailing list pgsql-general

From Rich Shepard
Subject Re: Selecting all variations of job title in a list
Date
Msg-id 8f256754-4ece-b67d-de5b-188b72b8a410@appl-ecosys.com
Whole thread Raw
In response to Re: Selecting all variations of job title in a list  (Ron Johnson <ronljohnsonjr@gmail.com>)
Responses Re: Selecting all variations of job title in a list
List pgsql-general
On Tue, 25 Nov 2025, Ron Johnson wrote:

> Maybe regex_match() with a bunch of OR clauses.
>
> In bash, I'd do something like:
> grep -E ' ^Asst Gen Mgr.*|^Env Mgr.*|^Gen Mgr.*|^Mgr.*|^Plant Mgr..*'
> foo.txt

Ron,

I've not used regex in postgres before, only in emacs and small languages.
So I'll learn how to do this. I was trying to avoid multiple OR clauses, but
that script will not be run often so it should not matter.

Thanks,

Rich



pgsql-general by date:

Previous
From: Daniel Gustafsson
Date:
Subject: Re: Indentation in a patch
Next
From: Rich Shepard
Date:
Subject: Re: Selecting all variations of job title in a list