python regex match between two characters include code example Example: get everything between two characters regex (?<=\[)(.*?)(?=\])