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