#1
|
|||
|
|||
Inverse of the numbers in the file name
What regex to change the inverse of the numbers in the file name?
Example: 80.ex Inverse: 08.ex 77.ex 77.ex 54.ex 45.ex Range: 01-80 Integer Only |
#2
|
||||
|
||||
Sorry we're not here to teach you how RegEx works - please use online websites like regex101.com
-psp-
__________________
JD Supporter, Plugin Dev. & Community Manager
Erste Schritte & Tutorials || JDownloader 2 Setup Download |
#3
|
||||
|
||||
Search engine of your choice will provide results very fast
__________________
JD-Dev & Server-Admin |
#4
|
|||
|
|||
I have my own script, but how to import this script into JD2 and how to run it in JD2 is already a college.
|
#5
|
|||
|
|||
@pspzockerscene - probably if it was simple - someone could give an answer in a minute, but The regexp is probably so complicated that even in google there is only special tools for this purpose. ^.^
|
#6
|
||||
|
||||
@sharkboy
all you really need to change a filename is package customiser rule, assuming you have filenames available at time links hit linkgrabber. else if you turn linkchecking off to make adding links faster, you will need to utilise the event scripter. You can even run your own script from event scripter if you choose. the regex you need/require is very easy. it should take someone with basic knowledge less than a minute to parse integer and shift its position. Search engine comment Jiaz gave was just indication to find some documentation to assist your requirements.
__________________
raztoki @ jDownloader reporter/developer http://svn.jdownloader.org/users/170 Don't fight the system, use it to your advantage. :] |
#7
|
|||
|
|||
incorrect
(?:[02468]|[13579]) Replace with: (?:=)\1\2 |
#8
|
|||
|
|||
Reverse string double char
Cannot Find: (?<=[0-9])(?=[^0-9]*$) |
#9
|
||||
|
||||
a) your patterns are wrong
b) wouldn't the replace be $2$1 since $1$2 would have been the original order.
__________________
raztoki @ jDownloader reporter/developer http://svn.jdownloader.org/users/170 Don't fight the system, use it to your advantage. :] |
#10
|
||||
|
||||
closing the thread, please use regex101 or similar service to write and test your patterns.
__________________
raztoki @ jDownloader reporter/developer http://svn.jdownloader.org/users/170 Don't fight the system, use it to your advantage. :] |
#11
|
||||
|
||||
Additionally, my opinion on your request:
Quote:
RegEx is something you need to learn and not something you would ask us again and again! It's similar to math: If you ask me "what is 3+3" and I tell you "the answer is 6", I would not like you to come back to ask me "what is 5+5" because you're supposed to learn how it works ... -psp-
__________________
JD Supporter, Plugin Dev. & Community Manager
Erste Schritte & Tutorials || JDownloader 2 Setup Download |
#12
|
|||
|
|||
How to replace the name?
Menu-> Rename link(s) (without extension)
Search for:??? Replace by:??? How to replace the name? Example: 654387 Replace with: 6.5.4.3.8.7 123 Replace with: 1.2.3 |
#13
|
||||
|
||||
This is your last warning:
We are not here to teach you how Regular Expressions work! To replace in downloadlist with RegEx, select all packages and pres F2. THREAD CLOSED! -psp-
__________________
JD Supporter, Plugin Dev. & Community Manager
Erste Schritte & Tutorials || JDownloader 2 Setup Download |
Thread Tools | |
Display Modes | |
|
|