#include <iostream>#include <vector>#include <regex>#include <algorithm>/...