Changeset 10190
- Timestamp:
- 2005-06-28T14:51:36+12:00 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl/perllib/sorttools.pm
r9956 r10190 57 57 } 58 58 } 59 59 60 60 return $metavalue; 61 61 } … … 70 70 sub format_string_en { 71 71 my $stringref = shift; 72 73 72 $$stringref = lc($$stringref); 74 73 $$stringref =~ s/&[^\;]+\;//g; # html entities 74 $$stringref =~ s/^\s*(the|a|an)\b//; # articles 75 75 $$stringref =~ s/[^[:alnum:]]//g; 76 $$stringref =~ s/^\s*(the|a|an)\b//; # articles77 76 $$stringref =~ s/\s+/ /g; 78 77 $$stringref =~ s/^\s+//;
Note:
See TracChangeset
for help on using the changeset viewer.