Newbie question: How to remove the '/' character

Advanced Renamer forum
#1 : 30/06-22 06:45
JA
JA
Posts: 1
You'll have to excuse me for asking such a simple question, but I've been trying to substitute the '/' character in the name of a file series for a long time and I can't.

Surely it is the simplest with the potential of this tool.

I've read the entire manual and I can't find a way.

Thank you


30/06-22 06:45
#2 : 01/07-22 08:55
Styb
Styb
Posts: 80
Reply to #1:
The '/' character is not allowed by the Windows OS.


01/07-22 08:55
#3 : 02/07-22 15:03
David Lee
David Lee
Posts: 1125
Reply to #2:

That isn't a very helpful comment given that JA is asking how to remove a "/" character that already exists in a filename!

Granted, the solidus character "/" (ASCII 47 / Unicode 002F) is invalid for use in Windows filenames. However other Unicode characters ARE permitted and these include:

Division Slash: "∕" (U+2215)
Fraction Slash: "⁄" (U+2044)
Combining Long Solidus Overlay "̸" (U+0338)
Combining Short Solidus Overlay "Ì·" (U+0337)

(Note that the "combining" characters are intended to overlay the preceding characters, if supported by an application (eg "O̸" = "Ø")

Thus "Div ∕ Frac⁄ Long ̸̸ Short Ì· .txt" is a perfectly acceptable Windows filename!

It seems likely that some Smart-Alec may have used one of these characters (likely to be Division or Fraction) to introduce a "slash" into filenames. If so, the easiest way to remove (or replace) them will be to select and copy the offending character from a filename and paste it into a Replace method in Advanced Renamer.

Alternatively select "Use regular expressions" and enter the Unicode number of the character directly in the format "\x{2215}" etc.

To remove or replace any of the above characters you can use the regular expression:
"[\x{2215}\x{2044}\x{0338}\x{0337}]"

If you need to remove multiple instances in the same filename then be sure to select:
Occurrence: All




02/07-22 15:03 - edited 02/07-22 17:11