Skip to content

Instantly share code, notes, and snippets.

@maxice8
Created January 4, 2023 04:36
Show Gist options
  • Save maxice8/0cf150810e2bbe42badb795c67587ae7 to your computer and use it in GitHub Desktop.
Save maxice8/0cf150810e2bbe42badb795c67587ae7 to your computer and use it in GitHub Desktop.
Regex to replace all occurrences of add_accepted_culture from Ante Bellum part 2
^(\s*)if\s*=\s*\{
\s*limit\s*=\s*\{
\s*NOT\s*=\s*\{\s*accepted_culture\s*=\s*([A-Za-z_]*)\s*\}
\s*\}
\s*add_accepted_culture\s*=\s*[A-Za-z_]*
\s*\}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment