Skip to content

Instantly share code, notes, and snippets.

@maxice8
Created January 3, 2023 17:42
Show Gist options
  • Save maxice8/eb25fea18d6cdf9410f846beae2f2874 to your computer and use it in GitHub Desktop.
Save maxice8/eb25fea18d6cdf9410f846beae2f2874 to your computer and use it in GitHub Desktop.
Regex to replace all occurrences of add_accepted_culture from Ante Bellum
(\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*\}
\s*else\s*=\s*\{
\s*add_dip_power\s*=\s*[0-9]*
\s*\}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment