grepbbedit

Grep with BBEdit


I do have one large text file with lot of the following patterns;

because of,this 
or that,has 
or,not

Of course I want to change the following

because of, this
or that, has
or, not

To make myself clear: i would like to insert a space after each ,

How can i do that with BBEdit Find/Replace/Grep?

enter image description here

Find works ok with

[\,](\w)

but i can't figure out the coresponding part for replace.


Solution

  • I complicates matters.

    Pattern like Letter,Letter can also be found with ,\b.

    \b is at the beginning or end of a word. \b in a regular expression means "word boundary".

    The replacement is then done with ,_

    Nota Bene: _ is a "Space" after ,