Something like this:

^[^\r]*\r[^\r]*(keyword1|keyword2|keyword3)[^\r]*\r[^\r]*$

Hope this helps!
-sam

On 12 Feb 2019, at 19:39, 'David J' via BBEdit Talk wrote:

Hi Sam, embarrassing, but in your example “^[^\r]*\r[^\r]*keyword to match[^\r]*\r[^\r]*$”

I was leaving “to match” in there thinking that was part of the expression. Working fine so far replacing all the words in that section with one keyword. So, THANK YOU.

If I wanted to do this search with multiple keywords (matching any provided, not all), do you know how I would change the expression to do that?

--
This is the BBEdit Talk public discussion group. If you have a
feature request or need technical support, please email
"supp...@barebones.com" rather than posting to the group.
Follow @bbedit on Twitter: <https://www.twitter.com/bbedit>
---
You received this message because you are subscribed to the Google Groups "BBEdit Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to bbedit+unsubscr...@googlegroups.com.
To post to this group, send email to bbedit@googlegroups.com.
Visit this group at https://groups.google.com/group/bbedit.

--
This is the BBEdit Talk public discussion group. If you have a feature request or need technical support, please email
"supp...@barebones.com" rather than posting to the group.
Follow @bbedit on Twitter: <https://www.twitter.com/bbedit>
--- You received this message because you are subscribed to the Google Groups "BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to bbedit+unsubscr...@googlegroups.com.
To post to this group, send email to bbedit@googlegroups.com.
Visit this group at https://groups.google.com/group/bbedit.

Reply via email to