On python:
.+?(?=abc)
works for the single line case.
[^]+?(?=abc)
does not work, since python doesn't recognize [^] as valid regex.
To make multiline matching work, you'll need to use the re.DOTALL option, for example:
re.findall('.+?(?=abc)', data, re.DOTALL)