I just want to make sure everything following punctuation in a passage is properly capitalized, so I want to run a search/replace regex in PassageDone or postrender. Can someone tell me the name of the variable or object or whatever I need to perform the regex on?
Comments
https://blog.codinghorror.com/regular-expressions-now-you-have-two-problems/
It's much, much easier and safer to just copy the Passage text outside, find and replace, paste it back in.
TME can back me up here.
So simple put there is no 'text' (String) for you to parse.
I believe @storymasterq meant the contents of the Passage in the Twine application's passage editor.
If this is related to your How do you regex an entire page before it outputs to reader? [Sugarcube 2.1] thread, then see my initial post there.
Beyond that, as noted by greyelf, there is no intermediate step in SugarCube's render pipeline where some kind of finalized string is available. For the most part, its parser converts markup and macros directly into document nodes for insertion into the DOM.