base for input document parsing and regex replacing