(?<=[)(.*?)(?=])
(?<=This is).*?(?=sentence)
#dont forgive to escape special characters with
(?<=X)(.*?)(?=Y)
(?s)(?<=This is).*?(?=sentence)
part1 ([sS]*?) part2
echo %H#E%L#L%O! | sed 's/[#%]//g' #replaces every appearance of any of
two characters # and %