Building an regular expression that will reject an input string which contain spaces.
I have a following expression, but its not working as well;
^[a-zA-Z0-9!@#*()+{}[\\];:,|\/\\\\_\S-]+$
Valid case
String123/test //string without space
Invalid case
String123/ test // contains space …
I'm trying to write some script in python (using regex) and I have the following problem:
I need to make sure that a string contains ONLY digits and spaces but it could contain any number of numbers.
Meaning it should …
I know it's possible to match a word and then reverse the matches using other tools (e.g. grep -v). However, is it possible to match lines that do not contain a specific word, e.g. hede, using a regular …