String::MFN is a Perl module to 'Normalize' a string in the manner of the mfn utility.
SYNOPSIS
use String::MFN;
my $sane_string = mfn($retarded_string);
...
Normalizes a string. Normalization, in brief, means modifying the string to resemble a sane UNIX filename while retaining information carried by the original formatting.
Normalization, in specific, consists of characters other than [w-.+] being removed, lowercasing of all letters, separation of internaCaps, separation of leading numerals from trailing non-numerals, replacement of "bracketing" characters ({[()]}), replacement of ampersands, and collapsing (things that look like) repeating extentions.
Some concrete examples (filenames found by googling for "mp3 playlist"):
Frank Sinatra & Count Basie - More.mp3
frank_sinatra_and_count_basie-more.mp3
Cornershop - Heavy Soup [Outro] [*] [*].mp3
cornershop-heavy_soup-outro.mp3
Soundtrack - American Pie 2�5 - Uncle Kracker - (Im Gonna) Split This Room In Half.mp3
soundtrack-american_pie_205-uncle_kracker-im_gonna-split_this_room_in_half.mp3
12. Only You (Bad Boys Remix)(Ft. The Notorious B.I.G.).mp3
12-only_you-bad_boys_remix-ft_the_notorious_b.i.g.mp3
Ultramagnetic MCs - Critical Beatdown.mp3.mp3.mp3
ultramagnetic_mcs-critical_beatdown.mp3
FUNCTIONS
mfn
Normalizes a string. Returns the normalized string. If no argument is given, mfn operates on $_.
Product's homepage
Requirements:
· Perl
Download String::MFN 1.29 Free
Tags: Normalize string , mfn utility , Perl module , String , Normalize , string ,
string, perl, stringmfn, characters, replacement, separation, mfn, sinatra, basie, soundtrack american, count, cornershop-heavy_soup-outromp3 soundtrack american, moremp3, *mp3 cornershop-heavy_soup-outromp3, cornershop-heavy_soup-outromp3 soundtrack, american pie, kracker, soundtrack, american, pie, 2�5, uncle, split, gonna, outro

No comments:
Post a Comment