I am new to python regex and I was using positive lookahead to find all the characters before \'#\'
string = \'Hello #World\' pattern1 = .*(?=[#]) pattern2 =