Using <regex> and fix constructors.