Author Topic: File Scanner Regex Year Help  (Read 7353 times)

0 Members and 1 Guest are viewing this topic.

Offline munkman

  • Member
  • *
  • Posts: 2
    • View Profile
File Scanner Regex Year Help
« on: April 09, 2011, 05:37:03 pm »
Hi,

I'm a new user and I LOVE this program. I have over a 1000 movies and this is what I've been dreaming of to manage my collection. However, I'd like to get my first massive import right and so far I haven't been able to configure the File Scanner to do what I want. My avi files are named \File Name [YYYY].avi . Sometimes with a [1080p] or [720p] to denote quality after the year (I can live without this). To avoid the tedious import/selection process I was hoping to configure the file scanner to pick up the year which would make 100% matches much more likely. I have searched and found this post: http://www.videodb.info/forum_en/index.php/topic,1168.0.html, which references http://www.regular-expressions.info/tutorial.html as the go to resource. I haven't found it as helpful as I would have hoped. Given that my modification to the syntax is relatively simple, I was hoping that someone could help me out.

(?i)^.+\\(?P<title>)+?[.+(?P<year>)?] doesn't seem to be working...

Thanks!!!!
Chad

Offline rick.ca

  • Global Moderator
  • *****
  • Posts: 3241
  • "I'm willing to shoot you!"
    • View Profile
Re: File Scanner Regex Year Help
« Reply #1 on: April 09, 2011, 10:34:30 pm »
Welcome, Chad.

(?i)^.*\\(?P<title>.*) \[(?P<year>(19|2\d)\d{2}).*\..{3,4} should do it.

Offline munkman

  • Member
  • *
  • Posts: 2
    • View Profile
Re: File Scanner Regex Year Help
« Reply #2 on: June 19, 2014, 12:05:41 am »
Totally forgot to log in to say thank you for the help! I was revisiting this post because I lost my original .PVD file and need to import all of my movies again and realized I hadn't thanked you. So... thanks!

 

anything