A regular expressions will only work if the String is already encoded. This string is still binary and could be any encoding. So we have to work at the byte level and try to guess the encoding, then tag it and we can operate on it as normal.