Ol.Text Wiki
This is an implementation of Rx text transformation script language.
Status: Pre-Alpha
Brought to you by:
pilottttt
This statement finds in the text or text fragment the substring corresponding to the first parameter and replaces with it all found substrings corresponding to the second parameter.
COPYPASTE <CopyString> INTO <PasteString>
COPYPASTE <CopyString> INTO <PasteString> INSIDE OF <ContextArea>
COPYPASTE <CopyString> INTO <PasteString> OUTSIDE OF <ContextArea>
Example 1
This statement will replace all occurrences of the [SUBJECT] wildcard with the value from the HTML header (<h1>...</h1>)
COPYPASTE R"(?<=<h1>).*?(?=<\/h1>)" INTO P"[SUBJECT]"
Original text
<h1>Coffee grinder</h1><p>The [SUBJECT] is a complex technical device. To activate the [SUBJECT], insert a plug into a socket and press the "ON" button.</p>
The text after applying the statement above
<h1>Coffee grinder</h1><p>The Coffee grinder is a complex technical device. To activate the Coffee grinder, insert a plug into a socket and press the "ON" button.</p>