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