#include<regex>
#include <iostream>
using namespace std;

bool isUSBNameValid(const std::string &node, std::regex device) {
    if (std::regex_match(node, device)) {
            return true;
    }
    return false;
}
int main() {
	std::regex device_sata("/dev/sd[a-z][0-9]*");
	std::regex device_any("/dev/[[:alnum:]]+");
	cout<< ( isUSBNameValid("/dev/sda1", device_sata) ? "Found" : "Not found")<<endl;
	cout<< ( isUSBNameValid("/dev/sdb", device_sata) ? "Found" : "Not found")<<endl;
	cout<< ( isUSBNameValid("/dev/ttyS0", device_any) ? "Found" : "Not found")<<endl;
	return 0;
}