Technical support and scripting issues
Moderators: JRL, Dorian (MJT support)
-
macroman
- Pro Scripter
- Posts: 93
- Joined: Mon Jun 02, 2014 5:32 am
Post
by macroman » Tue May 10, 2016 7:26 am
Is there any other way to strip unwanted tags from filenames like what i'm currently doing?
Code: Select all
StringReplace>%filename%,',,filename
StringReplace>%filename%,(,,filename
StringReplace>%filename%,),,filename
it could get nastier if i add a few more...
-
hagchr
- Automation Wizard
- Posts: 331
- Joined: Mon Jul 05, 2010 7:53 am
- Location: Stockholm, Sweden
Post
by hagchr » Tue May 10, 2016 7:50 am
One way would be to use RegEx>
Code: Select all
RegEx>['()],filename,0,m,nm,1,,filename
Which looks for either of ' ( ) in the filename and replaces it with an empty string, ie removes it, and puts the result in the string filename.
-
macroman
- Pro Scripter
- Posts: 93
- Joined: Mon Jun 02, 2014 5:32 am
Post
by macroman » Tue May 10, 2016 10:18 pm
thank you!