Added Regular Expression Parsing and Swapping