I would also like to know what the \t and \x stand for. I've been scrounging through the discussions to find out how to convert the patterns to regex and it's not documented well.
While trying to port browscap to Scala, \x throws the following exception:
java.util.regex.PatternSyntaxException: Illegal hexadecimal escape sequence near index 4
The only remedy I could find is to replace \ with \\ to escape it, but this felt wrong. I looked through the PHP library, and it looks like \x is escaped.
/**
* Converts browscap match patterns into preg match patterns.
*
* @param string $user_agent
*
* @return string
*/
protected function _pregQuote($user_agent)
{
$pattern = preg_quote($user_agent, self::REGEX_DELIMITER);
// the \\x replacement is a fix for "Der gro\xdfe BilderSauger 2.00u" user agent match
return self::REGEX_DELIMITER
. '^'
. str_replace(array('\*', '\?', '\\x'), array('.*', '.', '\\\\x'), $pattern)
. '$'
. self::REGEX_DELIMITER;