Menu

#28 RegEx for destination

v8.3
closed
nobody
RegEx (1)
1
2019-10-28
2015-08-17
Anonymous
No

Would it be possible to allow RegEx for the destination folder? Apply RegEx to the %FileName% for instance to generate the folder destination. In my case, my rule is to just match *.mkv which is easy enough. But the destination I want would be determined by RegEx on the filename.

For instance I would like my destination folder to be:
%FileName%/(?<=(?:]|))\s)(?![|.).+?(?=\s?-?\s?(?:\d)*\s?(?:[|())/

In the instance of multiple matches for a single file, can take the first match.

Discussion

  • Anonymous

    Anonymous - 2016-08-17

    It would be a good idea to be available on string modificators

     
  • divinity666

    divinity666 - 2017-04-07

    The feature is added in the current development path and will be available in the next release. usage is "regex(search_regex,replace_text)". You can also use backreferences by using \1 to \9.

     
    • Anonymous

      Anonymous - 2019-10-28
      Post awaiting moderation.
  • Lupo73

    Lupo73 - 2017-04-08
    • status: open --> closed
    • Group: v4.6 --> v8.3
     

Anonymous
Anonymous

Add attachments
Cancel