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