sls-versions/src/main/java/com/palantir/sls/versions/RegexParser.java
/** Returns a {@link MatchResult} if the provided string matches the pattern, or null otherwise. */
Returns a  MatchResult if the provided string matches the pattern, or null otherwise.
Returns a MatchResult if the provided string matches the pattern or null otherwise .
@Override
    @Nullable
    public MatchResult tryParse(String string) {
        Matcher matcher = pattern.matcher(string);
        return matcher.matches() ? new MatchResult.RegexMatchResult(string, matcher) : null;
    }
@ Override @ Nullable public MatchResult tryParse ( String string ) { Matcher matcher = pattern . matcher ( string ) ; return matcher . matches ( ) ? new MatchResult . RegexMatchResult ( string , matcher ) : null ; }
Returns a {@link MatchResult} if the provided string matches the pattern, or null otherwise.
Returns a { @link MatchResult } if the provided string matches the pattern or null otherwise .