corrected for update in regex notation
smart parentheses
bugfix with multiline submit