maybe some people know jdownloader2. its a download manager. regex is also used with the download manager. so i want to tell you what i basically try to do: i have multiple txt files with many links. all text files have file names, of course. i would like to drag and drop all text files into jdownloader2, so it decrypts the txt files and adds each text file to a package. the package name shall be the txt files name. what i found so for is this:
[ {
"enabled" : true,
"maxDecryptDepth" : 2,
"name" : null,
"pattern" : "file:/.*?\\.txt$",
"rule" : "DEEPDECRYPT",
"packageNamePattern" : null,
"formPattern" : null,
"deepPattern" : null,
"rewriteReplaceWith" : null
} ]
this makes jdownloader to crawl the links from a txt file. but the problem is: it gives every single file in the links an own name, because packagenamepattern has noe definiton. so it uses the original file names in the links to make packages. so if i have a txt file with 100 links, it will make 100 packages with different names. but i want it to read the 100 links in the txt file and put them all in one package. so.. how do i need to change "packagenamepattern" to make jdownloader2 put all 100 links from a text file into one package, and the package name should be the textfiles name. it has something to do with regex, i think (i hope im not wrong with my thinking)
thanks in advance.