Re: Regex for (A) and (B) to find in Bus Stop (A) or (B)

From: "David G(dot) Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com>
To: Shaozhong SHI <shishaozhong(at)gmail(dot)com>
Cc: pgsql-general <pgsql-general(at)lists(dot)postgresql(dot)org>
Subject: Re: Regex for (A) and (B) to find in Bus Stop (A) or (B)
Date: 2021-11-03 19:55:45
Message-ID: CAKFQuwYnWPd-R-_gJPTVN=+SX27tZ7tjLXXCPiPiTUYM2AwNDQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Wednesday, November 3, 2021, Shaozhong SHI <shishaozhong(at)gmail(dot)com>
wrote:

> What is the regex for (A) and (B) to find in Bus Stop (A) or (B)?
>

Not tested…

^Bus\sStop\s\((\w)\)\sor\((\w)\)$

The \s can just written as a space though the above seems clearer in email
(though it allows for non-space whitespace too)

David J.

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message David G. Johnston 2021-11-03 20:01:38 Re: Regex for (A) and (B) to find in Bus Stop (A) or (B)
Previous Message Shaozhong SHI 2021-11-03 19:45:06 Regex for (A) and (B) to find in Bus Stop (A) or (B)