public void map(LongWritable key, Text value, Context context) throws IOException, InterruptedException {

            String line = (caseSensitive) ? value.toString() : value.toString().toLowerCase();

            for (String pattern : patternsToSkip) {
                line = line.replaceAll(pattern, "");
            }
            String[] split = line.split("href=\"");
            if(split.length > 1) {
                split = split[1].split("\"");
                split[0].replace("\t", "");
                context.write(new Text(split[0]), one);
            }
            context.getCounter(Counters.INPUT_WORDS).increment(1);
            
            if ((++numRecords % 100) == 0) {
                context.setStatus("Finished processing " + numRecords
                + " records " + "from the input file: " + inputFile);
            }
        }