The basic idea is to define your search pattern with parentheses around the
parts you want to use in the replacement. We might find the character name in
all caps, two returns, and then the dialogue. You might need to add more \r
return characters to match your source.
Search: ([A-Z ]+)\r\r(.*)
Hi,
I’m trying to reformat screenplay dialogue into literary dialogue via grep.
Example:
*BILL*
*I like pizza.*
into
*“I like pizza” said Bill.*
An alternate source to edit would be to use all the hidden characters from
Final Draft, eg:
BILL
I like pizza.
T