FANDOM


Here are the most frequently used regular expressions for game scripts. Pay attention - they were tested in LibreOffice Writer and may not work in other programs.

WORKING ON THE SCRIPT

Find Replace Effect
\s\s+ (space) Finds 2 or more spaces and replaces it with one space.
^$ (none) Finds all empty lines and removes it.
([a-z])\.([A-Z]) .(space) Adds a space after the period.
^.+: (none) Use the "Find All" button to highlight names and Ctrl + B to make them more visible.


ADDING HTML

Find Replace Effect
\[(.*?)\] <i>&</i> Adds <i> tag for text in []
\((.*?)\)

<i>&</i>

Adds <i> tag for text in ()
^.+: <b>&</b> Adds <b> tag for characters names
$ <br /> Adds a line break tag


SHINING

Find Replace Effect
:(.*?):</b> (none) Use the "Find Next" button to find places where tag <b> is set incorrectly
==<br /> (none) Use this to remove unnecessary <br /> tags.



Community content is available under CC-BY-SA unless otherwise noted.