View Single Post
Old 06-24-2024, 11:35 AM   #1
oloco
Junior Member
oloco began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Jun 2024
Device: kindle
looking for the correct regex

Hi,
During the last years, I've been storing all my books using this simple format:

El tutorial de python - Guido van rossum (2017).pdf
Zed A. Shaw - Learn Python The Hard Way (2011).epub

I'm lookinf for a regex template to be able to capture the metadata correctly.

I've tried multiple kind of combinations, but I'm not being able to capture the year.

One of the last examples I tried:

(?P<author>[^_-]+) - (?P<title>[^_].+) (?P<published>[^_]).+?

No matter the way I trie.. i never get the year.

Could yopu please help me with this?

Thanks in advance!
oloco is offline   Reply With Quote