php code
$contentHtml = ".....";
preg_match('/;ytplayer\.config\s*=\s*({.*?});/', $contentHtml, $matches);
var_dump($matches[1]);
how to using this expression on java/android ?
Pattern pattern = Pattern.compile("/;ytplayer\.config\s*=\s*({.*?});/");
// error: Invalid escape sequence (valid ones are \b \t
\f \" \' \\ )
thank you.