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