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