regular expressions in python of course the compiler pattern object supports range of methods in addition to search(as illustrated by the spilt methodp re compile( '\ +' ' high streetprint( split( )the output from this is [' ''high''street' online resources see the python standard library documentation forhow to the re module other online resources include start module that extends the functionality offered by the builtin re module exercises write python function to verify that given string only contains letters (upper case or lower caseand numbers thus spaces and underbars (' 'are not allowed an example of the use of this function might beprint(contains_only_characters_and_numbers('john')true print(contains_only_characters_and_numbers('john_hunt')false print(contains_only_characters_and_numbers(' ')true print(contains_only_characters_and_numbers('john ')true print(contains_only_characters_and_numbers('john ')false write function to verify uk postcode format (call it verify_postcodethe format of postcode is two letters followed by or numbersfollowed by