Class Parser
- java.lang.Object
-
- org.schabi.newpipe.extractor.utils.Parser
-
public final class Parser extends java.lang.Object
Avoid using regex !!!
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Parser.RegexException
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.util.Map<java.lang.String,java.lang.String>
compatParseMap(java.lang.String input)
static boolean
isMatch(java.lang.String pattern, java.lang.String input)
static boolean
isMatch(java.util.regex.Pattern pattern, java.lang.String input)
static java.lang.String
matchGroup(java.lang.String pattern, java.lang.String input, int group)
static java.lang.String
matchGroup(java.util.regex.Pattern pat, java.lang.String input, int group)
static java.lang.String
matchGroup1(java.lang.String pattern, java.lang.String input)
static java.lang.String
matchGroup1(java.util.regex.Pattern pattern, java.lang.String input)
static java.lang.String
matchGroup1MultiplePatterns(java.util.regex.Pattern[] patterns, java.lang.String input)
static java.util.regex.Matcher
matchMultiplePatterns(java.util.regex.Pattern[] patterns, java.lang.String input)
-
-
-
Method Detail
-
matchGroup1
public static java.lang.String matchGroup1(java.lang.String pattern, java.lang.String input) throws Parser.RegexException
- Throws:
Parser.RegexException
-
matchGroup1
public static java.lang.String matchGroup1(java.util.regex.Pattern pattern, java.lang.String input) throws Parser.RegexException
- Throws:
Parser.RegexException
-
matchGroup
public static java.lang.String matchGroup(java.lang.String pattern, java.lang.String input, int group) throws Parser.RegexException
- Throws:
Parser.RegexException
-
matchGroup
public static java.lang.String matchGroup(@Nonnull java.util.regex.Pattern pat, java.lang.String input, int group) throws Parser.RegexException
- Throws:
Parser.RegexException
-
matchGroup1MultiplePatterns
public static java.lang.String matchGroup1MultiplePatterns(java.util.regex.Pattern[] patterns, java.lang.String input) throws Parser.RegexException
- Throws:
Parser.RegexException
-
matchMultiplePatterns
public static java.util.regex.Matcher matchMultiplePatterns(java.util.regex.Pattern[] patterns, java.lang.String input) throws Parser.RegexException
- Throws:
Parser.RegexException
-
isMatch
public static boolean isMatch(java.lang.String pattern, java.lang.String input)
-
isMatch
public static boolean isMatch(@Nonnull java.util.regex.Pattern pattern, java.lang.String input)
-
compatParseMap
@Nonnull public static java.util.Map<java.lang.String,java.lang.String> compatParseMap(@Nonnull java.lang.String input)
-
-