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