So far it's only possible to share files by folder and extension. - Do you think sharing by regular expressions or something would be useful?
If you want to modify the sources (from
www.limewire.org) yourself, the code you need to change is in the class com.limegroup.gnutella.FileManager the addFileIfShared(File) method. You could always modify that code if you are serious about doing some research.