Re: Regex for (A) and (B) to find in Bus Stop (A) or (B) - Mailing list pgsql-general

From David G. Johnston
Subject Re: Regex for (A) and (B) to find in Bus Stop (A) or (B)
Date
Msg-id CAKFQuwYnWPd-R-_gJPTVN=+SX27tZ7tjLXXCPiPiTUYM2AwNDQ@mail.gmail.com
Whole thread Raw
In response to Regex for (A) and (B) to find in Bus Stop (A) or (B)  (Shaozhong SHI <shishaozhong@gmail.com>)
Responses Re: Regex for (A) and (B) to find in Bus Stop (A) or (B)  ("David G. Johnston" <david.g.johnston@gmail.com>)
List pgsql-general
On Wednesday, November 3, 2021, Shaozhong SHI <shishaozhong@gmail.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.

pgsql-general by date:

Previous
From: Shaozhong SHI
Date:
Subject: Regex for (A) and (B) to find in Bus Stop (A) or (B)
Next
From: "David G. Johnston"
Date:
Subject: Re: Regex for (A) and (B) to find in Bus Stop (A) or (B)