For parsing headers of Wikipedia article sections I'd like to have a regex match anything except two or more equal signs ==.
For this I tried this regex: ([^==]+)
but it only checks for a single equal sign character (same as ([^=]+)
). Negative lookaheads also didn't work for this so far.
How can one use regex to match everything except of a specified string?