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