Fix the regex used for detecting the Output Window reference