You can test the code with Emoji here: https://pastebin.com/QhNNR5St
or put your own inside " Replace with Emoji " (due to the Forum crashes with Emojis)
regex_SC = CreateRegularExpression(#PB_Any, "^[\t]*[\ ]*EnablePbCgi([\s\S]*?)\(([\s\S]*?)^[\s]*DisablePbCgi", #PB_RegularExpression_MultiLine | #PB_RegularExpression_NoCase)
content.s = "EnablePbCgi" + #CRLF$ +
~"()\" Replace with Emoji \"" + #CRLF$ +
"DisablePbCgi"
; Debug StringByteLength(content)
; ShowMemoryViewer(@content, StringByteLength(content))
; CallDebugger
ExamineRegularExpression(regex_SC, content)
If NextRegularExpressionMatch(regex_SC)
Debug RegularExpressionMatchString(regex_SC) ; Last Char ist missing
EndIf