Apr-17-2020, 02:26 PM
How could I use regex to match everything not in between hyphens? E.g.
Edit: This particular example is simple, and could be solved using
re.search(r"<>", "- i don't want this - I do want this")
Edit: This particular example is simple, and could be solved using
re.split()
-- but that won't generally work