I have the following text:
This is a sequence of nothing. This is another
I'm trying to write a regex that can get everything until a dot followed by space (\.\s), but if this dot followed by a space is not present in the string, then i want everything.
Example:
This is a sequence of nothing. This is another
This is a sequence of nothing
This is a sequence of nothing this is another
This is a sequence of nothing this is another
I was trying this one, but even when the string has a dot followed by a space it gets everything:
This is a sequence (.*)(\.\s)?
PS: I'm applying this regex in python