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