Added fix for jQuery UI Dialog content issue; Updated regular expressions