public static int removeTileSources ( final String aRegex ) { int n = 0 ; for ( int i = mTileSources . size ( ) - 1 ; i >= 0 ; -- i ) { if ( mTileSources . get ( i ) . name ( ) . matches ( aRegex ) ) { mTileSources . remove ( i ) ; ++ n ; } } return n ; }
removes any tile sources whose name matches the regular expression