console.log("Some Programming Languages:");
console.log("Python
JavaScript
Java
C#
Swift");
/*For the computer, newline is an invisible character that is used
to tell the machine to move to the next line. It is possible to use this
invisible character with the special representation
.
In addition to the newline character, there is also a special tab
character, . Go back to the eight examples above and experiment
with using and
./*
import re
def checkvalid(string1):
if re.search(r'[d.]s+[d.]', string1): return False # two numbers separated by spaces
string1 = string1.replace(' ', '')
return (bool(re.search(r'd', string1)) # must contain numbers
and not re.search(r'.d*.', string1) # a number can't contain two dots
and not re.search(r'[$^]{2}|#[$^]|[$^]#[$^#]', string1) # obviously
and not re.search(r'^[$^]|[$^]$', string1) # special at the beginning or end
and not re.search(r'^##|##$', string1) # two hashes at the beginning or end
)