1

Hi trying out latest BBedit on Ventura Apple silicon.

Have been wrapping my head around the (im)possibility to search for different strings at once in the find window, in order to have each occurrence replaced by one single term.

I would like something like this :

Find : string 1 OR string 2 OR string 3

Replace : string 4.

In the manual it seems this should be possible with the straight bar | but that didn't find anything at all.

I'm sure this must be possible but am unable to find out how.

2 Answers2

0

You're right that the pipe symbol acts as OR.
e.g. string1|string2|string3
It's a common usage, but BBEdit doesn't use it until you switch on 'grep'

Off…
enter image description here

On…
enter image description here

Once enabled, then Replace will work as you expected.

enter image description here

using random rtf file with my 'what to watch on TV' list ;))

Tetsujin
  • 50,917
0

BBedit supports PCRE regular expressions.

Your search expression will look like :

string1|string2|string3

Reference : PCRE Regex Cheatsheet.

harrymc
  • 498,455