Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Library Management

Notices

Reply
 
Thread Tools Search this Thread
Old 11-12-2011, 09:43 PM   #1
nickflyger
Junior Member
nickflyger began at the beginning.
 
Posts: 1
Karma: 10
Join Date: Nov 2011
Device: Sony PRS-T1
Help for expression to extract metadata from filename

Hi,

I use a a standard naming structure with all my PDF journal articles. That is, Author (year) Title.pdf

For example: Allen (2008) Skeletal muscle fatigue.pdf

Can someone help me write the expression to separate my file names into Author, Year, and Title metadata.

Regards
Nick
nickflyger is offline   Reply With Quote
Old 11-13-2011, 10:39 AM   #2
Starson17
Wizard
Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.
 
Posts: 4,004
Karma: 177841
Join Date: Dec 2009
Device: WinMo: IPAQ; Android: HTC HD2, Archos 7o; Java:Gravity T
Quote:
Originally Posted by nickflyger View Post
Hi,

I use a a standard naming structure with all my PDF journal articles. That is, Author (year) Title.pdf

For example: Allen (2008) Skeletal muscle fatigue.pdf

Can someone help me write the expression to separate my file names into Author, Year, and Title metadata.

Regards
Nick
Try this:
Code:
(?P<author>[^_0-9-]*) \((?P<published>\d+)\) (?P<title>.*)
Starson17 is offline   Reply With Quote
Advert
Reply

Tags
filename, metadata


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
RegEx - filename metadata help ejjenkins Calibre 4 12-28-2010 05:47 PM
Need help with metadata by filename artbatista Calibre 17 12-19-2009 07:51 AM
Metadata extract from Title 507Tuli Calibre 14 05-29-2009 03:13 AM
What is the default regular expression for filename import? palex481 Calibre 2 03-22-2009 06:11 PM


All times are GMT -4. The time now is 04:54 PM.


MobileRead.com is a privately owned, operated and funded community.