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