Feb-06-2017, 08:33 PM
Hello,
I'm trying to formulate a regex search to see if this exact string, ''op_single_selector" exists in this line of text:
-> [!div class="op_single_selector"]
This is what I have now that's not working:
I'm trying to formulate a regex search to see if this exact string, ''op_single_selector" exists in this line of text:
-> [!div class="op_single_selector"]
This is what I have now that's not working:
selector_string = False single_selector_regex_search_string = re.compile(r"[\+-]>\s\[op_single_selector\]") if single_selector_regex_search_string.search(file_information.patch): selector_string = True