Author Topic: Removing special characters while syncing  (Read 1100 times)

Babydoll32

  • Jr. Member
  • **
  • Posts: 122
Hi,
I'm not good in RegEx and need some help.
I want to sync music to my phone and want to remove special characters (like ‚óź,#) in filename.
I tried with RegEx, but failed  :(
Can someone help?

redwing

  • Guest
Not sure you really want to remove every cases of special characters.
Anyway, this is how to remove all special characters except a comma, a dot, and a space from title:

Code
$RxReplace(<Title>,"[^a-zA-Z0-9,. ]","")
To remove them from filename, replace <Title> with your entire "filename" template (e.g. <Track#> <Artist> <Title>) after adjusting the character exceptions in the code.

Babydoll32

  • Jr. Member
  • **
  • Posts: 122
Thanks Redwing.
Exactly what I want. Works perfect for me.