Author Topic: Regular Expression help  (Read 8341 times)

0 Members and 2 Guests are viewing this topic.

Offline rucknrun

  • Member
  • *
  • Posts: 5
    • View Profile
Regular Expression help
« on: May 18, 2011, 08:20:56 pm »
I need some quick help on what to put in the file scanner find and replace.

My root direcory should e

\rocksbox\filename

the actal file system directory is:

d:\Tversity\rocksbox\filename

I need the correct find and replace to remove D:\Tversity from all my filenames.

Any help on this is much appreciated.

Offline rick.ca

  • Global Moderator
  • *****
  • Posts: 3241
  • "I'm willing to shoot you!"
    • View Profile
Re: Regular Expression help
« Reply #1 on: May 18, 2011, 08:43:49 pm »
Welcome, rucknrun.

I'm not sure whether you should be doing that or just using Preferences>Folders>Replace folders in file paths. Either way, it should be a straightforward replacement. :-\

Offline rucknrun

  • Member
  • *
  • Posts: 5
    • View Profile
Re: Regular Expression help
« Reply #2 on: May 18, 2011, 08:46:32 pm »
I still am not sure what to put in there for the entries.

Thanks for the help.

Offline rick.ca

  • Global Moderator
  • *****
  • Posts: 3241
  • "I'm willing to shoot you!"
    • View Profile
Re: Regular Expression help
« Reply #3 on: May 19, 2011, 10:21:15 pm »
Find: D:\Tversity
Replace with:

Offline rucknrun

  • Member
  • *
  • Posts: 5
    • View Profile
Re: Regular Expression help
« Reply #4 on: May 20, 2011, 03:27:10 pm »
OK.  Does it actually replace the values in the database?  I have not seen it fix the directory structure in the actual database yet in the file path field.   The scanning keeps breaking my web server.  If it fixes it in the xml file export that is enough for me.

Thanks

Neil

Offline rick.ca

  • Global Moderator
  • *****
  • Posts: 3241
  • "I'm willing to shoot you!"
    • View Profile
Re: Regular Expression help
« Reply #5 on: May 20, 2011, 07:05:41 pm »
Quote
If it fixes it in the xml file export that is enough for me.

You might have said that in the first place. Use a Replace statement in the export template.

Offline rucknrun

  • Member
  • *
  • Posts: 5
    • View Profile
Re: Regular Expression help
« Reply #6 on: May 21, 2011, 02:02:41 pm »
Where do I find the export template?

Offline rucknrun

  • Member
  • *
  • Posts: 5
    • View Profile
Re: Regular Expression help
« Reply #7 on: May 21, 2011, 02:25:12 pm »
Nevermind. I got it working with a string replace in the XML export template.  This will make my life much easier.  Now I can't seem to get it to Organize a Television Show correctly.

 

anything