I have a string which can be presented in different forms in different files for e.g.
#proxy_set_header test $flag;// no space between # & proxy_set_header# proxy_set_header test $flag;// space between # & proxy_set_header can be 1 or moreproxy_set_header test $flag;// no #
Is there way to use regex in python to capture the part of the string that I am interested in proxy_set_header test $flag, which takes into account the cases that I have listed above.