Does anyone know how I can base my re condition based on it not finding a match. I have the following at the moment .....

if re.search(r'123', os.uname()[1]):

Recommended Answers

All 2 Replies

if '123' not in os.uname()[1]:

Many Thanks,

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.