Skip to content
This repository has been archived by the owner on Aug 1, 2023. It is now read-only.

Feature request: Regular expressions in Find and Replace #938

Open
amaau opened this issue Jan 24, 2021 · 5 comments
Open

Feature request: Regular expressions in Find and Replace #938

amaau opened this issue Jan 24, 2021 · 5 comments
Labels

Comments

@amaau
Copy link

amaau commented Jan 24, 2021

Can you please implement regex in Find and Replace?
It's one of the most useful features in any work with text, and specifically in screenplays it's very helpful.
Thanks!

@amaau amaau changed the title Regular expressions in Find and Replace (feature) Feature request: Regular expressions in Find and Replace Jan 24, 2021
@dimkanovikov
Copy link
Owner

Can you provide search cases when you need to search with regular expressions inside the screenplay?

@amaau
Copy link
Author

amaau commented Jan 25, 2021

Sure,

In one project I had dates below each scene heading that started on a new day, and at some point needed to extract them.

I'm an editor/producer, I need to find all italic text that the writer left and change it to caps or asterisk, because our company likes strict screenplay formatting.

I need to clean accidental whitespace, or make sure all character names start with a capital letter.

There's a convention to capitalize important props the first time they're mentioned, just like for characters, I need to quickly go through all those props.

I need to fix all transitions that were accidentally marked as actions, or parentheticals accidentally marked as dialogue.

@dimkanovikov
Copy link
Owner

Hm... and how regular expressions will help you with these tasks?

@amaau
Copy link
Author

amaau commented Feb 6, 2021

select all dates written on their own line - "^\d\d.\d\d.\d\d$"
clean some cases of extra spaces - Find " {2,}", Replace " ", Find " +$", Replace ""
find capitalized words - "\W[A-Z]{3,}\W"
find parentheticals in dialog - "(.+)" (combined with option to look in dialog only)

@dimkanovikov
Copy link
Owner

Huh! Okay, thanks! I need to think about it.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants