added functionality for regexes, replacing substrings, and proxy specific regexs
refactored