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