I am trying to search for a line starting with
'log.' followed by a line not starting with
This is the regex I’m using:
[^\n]+matches everything until newline
\s+matches newline and indentation
[^r] matches the last whitespace before
\s+ did not eat all space. I also tried putting a character from the first line in place of
[^\n]+ shrinks to get a successful match.
I don’t remember this happening before. Is it my fault, or have atom regular expressions become non-greedy? If the latter is true, how can I make them greedy?