I have been struggling with python regex for a while trying to match paragraphs within a text, but I haven\'t been successful. I need to obtain the start and end positions o
Try
^(.+?)\n\s*\n
or
^(.+?)\r\n\s*\r\n
just do not forget append extra new line at the end of text