File size: 194 Bytes
6c62356
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8

import re
def text_lowercase_underscore(text):
        patterns = '^[a-z]+_[a-z]+$'
        if re.search(patterns,  text):
                return True
        else:
                return False