Enhance the regex for catching different scripts and evaluating them for pre/post widget blocks