Remove Apostrophes from filename?

Any questions? Need some help?
Post Reply
farrsight
Posts: 6
Joined: 04 Jun 2014, 08:28

Remove Apostrophes from filename?

Post by farrsight »

I'm a little stumped trying to figure out how to force filebot to avoid all apostrophe's in my filenames. My linux based media center won't recognize files that have single quotes / apostrophes in the filenames.

I'm sure there is a way to do this with some kind of replace expression, but I'm not getting the syntax correct.

Help?

I'm on filebot 4.6 on Win7 x64 sysinfo details below

FileBot 4.6 (r3052)
JNA Native: 4.0.0
MediaInfo: MediaInfoLib - v0.7.69
7-Zip-JBinding: OK
chromaprint-tools: fpcalc version 1.1.0 (C:\Program Files\FileBot\fpcalc.exe)
Extended Attributes: OK
Groovy Engine: 2.4.3
JRE: Java(TM) SE Runtime Environment 1.8.0_45
JVM: 64-bit Java HotSpot(TM) 64-Bit Server VM
CPU/MEM: 4 Core / 3 GB Max Memory / 138 MB Used Memory
OS: Windows 7 (amd64)
User avatar
rednoah
The Source
Posts: 23932
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Remove Apostrophes from filename?

Post by rednoah »

You can copy and paste that one from here:
http://www.filebot.net/naming.html

Code: Select all

replaceAll(/[`´‘’ʻ]/, "'")
This will replace all the weird ones with '.

You can just as easily replace all the apostrophes with empty string as well.
:idea: Please read the FAQ and How to Request Help.
farrsight
Posts: 6
Joined: 04 Jun 2014, 08:28

Re: Remove Apostrophes from filename?

Post by farrsight »

Will this affect titles of episodes that get pulled down? I currently use this:

Code: Select all

{n.space('.')}.{s00e00}_{t}
However, some episode titles get pulled down and have apostrophe in the episode title.
Post Reply