How do I do that...like if I have this:
It should match "main", "len", "usage", "tidy_up_file", and "download_pdf", but NOT the ( after it.Code:#Hello mother def main(): if len(sys.argv) < 1: usage() #Yeah thats your mother all right else: kek_number_list = tidy_up_file(sys.argv[1]) if kek_number_list != -1: download_pdf(kek_number_list)
I tried this:
\s[\d\w^\S]*\(
and it matches the word in front AND the ( but I don't want the(...![]()




Reply With Quote