Regular Expression Python Definition Function Of Three