There are lots of posts about regexs to match a potentially empty string, but I couldn\'t readily find any which provided a regex which only matched an emp
Try looking here: https://docs.python.org/2/library/re.html
I ran into the same problem you had though. I could only build a regex that would match only the empty string and also "\n". Try trimming/replacing the newline characters in the string with another character first.
I was using http://pythex.org/ and trying weird regexes like these:
()
(?:)
^$
^(?:^\n){0}$
and so on.