public static String convertPatternExtractBracketedExpression( String pattern )
	{
		String[] s = pattern.split( "\\[" );
		if( s.length > 1 )
		{
			pattern = "";
			for( String value : s )
			{
				int zz = value.indexOf( "]" );
				if( zz != -1 )
				{
					String term = "";
					if( value.charAt( 0 ) == '$' )
					{
						term = value.substring( 1, zz );    // skip first $
					}
					else
					{
						term = value.substring( 0, zz );
					}
					if( term.indexOf( "-" ) != -1 )  // extract character TODO: locale specifics
					{
						pattern += term.substring( 0, term.indexOf( "-" ) );
					}
					else
					{
						pattern += term;
					}
				}
				pattern += value.substring( zz + 1 );
			}
		}
		return pattern;
	}