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