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