Zombse

The Zombie Stack Exchanges That Just Won't Die

View the Project on GitHub anjackson/zombse

What regular expression would match Library of Congress call numbers?

I'm looking for something that can help with my awful reporting interface.

Has anyone created a macro or a program that will strip out internal spaces, except for the space before the date and recognize all of the different ways in which LoC call numbers can appear, creating a list in shelf order?

In short, I need to normalize my LC call number data.

Brett

Comments

Answer by Bill Dueber

Short answer: it's really, really hard. LC Call Numbers are a freakin' mess.

Check out this discussion for some links to existing code.

http://www.libcatcode.org/questions/5/normalized-lcc-for-sorting

Comments