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