(?<=[)(.*?)(?=])
(?<=This is).*?(?=sentence) #dont forgive to escape special characters with
(?<=X)(.*?)(?=Y)
(?s)(?<=This is).*?(?=sentence)
part1 ([sS]*?) part2