I'm trying to populate $title with whatever is on the line containing "#title#".
These triesĀ are blanking out everything preceding #title# on that line and returning all other lines.
#include <array.au3>
;#title# the title of this code
local $str = fileread(@ScriptFullPath)
;local $title = stringregexpreplace($str,'(?i).*?\#title\#(.+).*', '$1')
;local $title = stringregexpreplace($str,'(?im).*?\#title\#(.+).*', '$1')
;local $title = stringregexpreplace($str,'(?im)^.*?\#t