import re

regex = r"\|-{2,}[^-]+-{2,}([^-].*?)(?=\|)"

str1 = "|---------------------------------------------Title1(a)---------------------------------------------" \
    "" \
    "Content goes here, the quick brown fox jumps over the lazy dog" \
    "" \
    "|---------------------------------------------Title1(b)----------------------------------------------" \
    "" \
    "Content goes here, the quick brown fox jumps over the lazy dog" \
    "|"
    
str2 = re.findall(regex, str1);
print(str2[0])
print(str2[1])