Code example for Matcher

Methods: group, matches

0
    	    this.fragment = null;
    	    return; 
    	} 
    	 
    	Matcher m = URI_PATTERN.matcher(uri);
    	if (!m.matches()) {
    	    throw new IllegalArgumentException(uri + " is not a valid measurement info URI");
    	} 
    	// if a group had no match, it is set to null - this is exactly what we want 
        scheme = m.group(1);
        path = m.group(2);
        fragment = m.group(3);
 
    } 
    public void assign(MeasurementInfoUri m) {
        scheme = m.getScheme();
        path = m.getPath();
        fragment = m.getFragment();
    } 
     
    public String getScheme() {