data7/src/main/java/data7/importer/sources/cve/CVEParser.java
/**
     * Method to create a Matcher for finding a given software in a NVD software label
     *
     * @param soft: software under study
     *              *
     * @return Matcher for the software
     */
Method to create a Matcher for finding a given software in a NVD software label
@param soft: software under study

@return Matcher for the software
Method to create a Matcher for finding a given software in a NVD software label @param soft : software under study @return Matcher for the software
private Matcher softwareMatch(String soft) {
        String re1 = ".*?";    
        String re2 = "(?:[a-z][a-z]+)";    
        String re3 = ".*?";    
        String re4 = "(?:[a-z][a-z]+)";   
        String re5 = ".*?";   
        String re6 = "((?:[a-z][a-z0-9_]+))";    
        String re7 = ".+?";  
        String re8 = "((?:[a-z0-9_.]+))";    
        Pattern p = Pattern.compile(re1 + re2 + re3 + re4 + re5 + re6 + re7 + re8, Pattern.CASE_INSENSITIVE | Pattern.DOTALL);
        return p.matcher(soft);
    }
private Matcher softwareMatch ( String soft ) { String re1 = ".*?" ; String re2 = "(?:[a-z][a-z]+)" ; String re3 = ".*?" ; String re4 = "(?:[a-z][a-z]+)" ; String re5 = ".*?" ; String re6 = "((?:[a-z][a-z0-9_]+))" ; String re7 = ".+?" ; String re8 = "((?:[a-z0-9_.]+))" ; Pattern p = Pattern . compile ( re1 + re2 + re3 + re4 + re5 + re6 + re7 + re8 , Pattern . CASE_INSENSITIVE | Pattern . DOTALL ) ; return p . matcher ( soft ) ; }
Method to create a Matcher for finding a given software in a NVD software label
 @param soft: software under study
Method to create a Matcher for finding a given software in a NVD software label @param soft : software under study
// Non-greedy match on filler // Uninteresting: word // Non-greedy match on filler // Uninteresting: word // Non-greedy match on filler // soft // Non-greedy match on filler // version