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