content-parser/impl-text/src/main/java/net/sf/mmm/content/parser/impl/text/AbstractContentParserText.java
/**
   * This method tries to extract a property value using the given
   * <code>pattern</code> that has to produce it in the given
   * <code>{@link Matcher#group(int) group}</code>.
   * 
   * @param line is a single line read from the text.
   * @param pattern is the regular expression pattern.
   * @param group is the {@link Matcher#group(int) group} number of the property
   *        in the <code>pattern</code>.
   * @return the property or <code>null</code> if the <code>pattern</code> did
   *         NOT match.
   */
This method tries to extract a property value using the given
pattern that has to produce it in the given
Matcher#group(int) group.

@param line is a single line read from the text.
@param pattern is the regular expression pattern.
@param group is the  Matcher#group(int) group number of the property
in the pattern.
@return the property or null if the pattern did
NOT match.
This method tries to extract a property value using the given pattern that has to produce it in the given Matcher#group ( int ) group . @param line is a single line read from the text . @param pattern is the regular expression pattern . @param group is the Matcher#group ( int ) group number of the property in the pattern . @return the property or null if the pattern did NOT match .
protected String parseProperty(String line, Pattern pattern, int group) {
    Matcher m = pattern.matcher(line);
    if (m.matches()) {
      return m.group(group).trim();
    } else {
      return null;
    }
  }
protected String parseProperty ( String line , Pattern pattern , int group ) { Matcher m = pattern . matcher ( line ) ; if ( m . matches ( ) ) { return m . group ( group ) . trim ( ) ; } else { return null ; } }
This method tries to extract a property value using the given
 <code>pattern</code> that has to produce it in the given
 <code>{@link Matcher#group(int) group}</code>.
This method tries to extract a property value using the given <code > pattern< / code > that has to produce it in the given <code > { @link Matcher#group ( int ) group } < / code > .