Skip to content Skip to sidebar Skip to footer

I Can't Get Value From Script To Jsoup

I want to code get value stream but fail. How to get value stream : http://123.30.215.65/hls/4545780bfa790819/5/3/d836ad614748cdab11c9df291254cf836f21144da20bf08142455a8735b328ca/d

Solution 1:

Hi try this in your code,

StringResultString= null;
try {
    Pattern regex =Pattern.compile("source:\\s[\"](.*?[^\\\\])[\"]", Pattern.DOTALL|Pattern.CASE_INSENSITIVE|Pattern.UNICODE_CASE|Pattern.MULTILINE);
    Matcher regexMatcher = regex.matcher(subjectString);
    if (regexMatcher.find()) {
        ResultString= regexMatcher.group(1);
    } 
} catch (PatternSyntaxException ex) {
    // Syntax error in the regular expression
}

This works like a charm..! :)

Post a Comment for "I Can't Get Value From Script To Jsoup"