function formatNovelName(name){
    name = name.replace(/[/() -]/g,"_");
    name = name.replace(/[.'?,]/g,"");

    // While there is _ repetitions remove
    while(name.indexOf("__")!=-1){

        name = name.replace("__","_");
    }
    
    name = name.replace("%","pct");
    name = name.replace("#","nbr");
    name = name.replace("&","and");
    name = name.replace("+","and");
    name = name.replace("<","less_than");
    name = name.replace(">","greater_than");

    return name.toLowerCase();
}
/**
 * Format the name to an acceptible filename format
 * 
 * @param {String} name The name of the novel
 * 
 * @returns The formatted filename in lowercase letters
 */
Format the name to an acceptible filename format

@param {String} name The name of the novel

@returns The formatted filename in lowercase letters
Format the name to an acceptible filename format @param { String } name The name of the novel @returns The formatted filename in lowercase letters
function formatNovelName(name){
    name = name.replace(/[/() -]/g,"_");
    name = name.replace(/[.'?,]/g,"");
    while(name.indexOf("__")!=-1){
        name = name.replace("__","_");
    }
    name = name.replace("%","pct");
    name = name.replace("#","nbr");
    name = name.replace("&","and");
    name = name.replace("+","and");
    name = name.replace("<","less_than");
    name = name.replace(">","greater_than");
    return name.toLowerCase();
}
function formatNovelName ( name ) { name = name . replace ( / [/() -] / g , "_" ) ; name = name . replace ( / [.'?,] / g , "" ) ; while ( name . indexOf ( "__" ) != - 1 ) { name = name . replace ( "__" , "_" ) ; } name = name . replace ( "%" , "pct" ) ; name = name . replace ( "#" , "nbr" ) ; name = name . replace ( "&" , "and" ) ; name = name . replace ( "+" , "and" ) ; name = name . replace ( "<" , "less_than" ) ; name = name . replace ( ">" , "greater_than" ) ; return name . toLowerCase ( ) ; }
Format the name to an acceptible filename format
Format the name to an acceptible filename format
// While there is _ repetitions remove