Go Back   FlashFXP Forums > >

Custom Commands Download, share, or get help creating your own.

Closed Thread
 
Thread Tools Display Modes
Old 04-26-2014, 10:56 AM   #1
bigstar
FlashFXP Developer
FlashFXP Administrator
ioFTPD Beta Tester
 
bigstar's Avatar
 
Join Date: Oct 2001
Posts: 8,012
Default

I have successfully added $replacerx()

This replace function is rx specific so the rx: prefix from the pattern must be omitted.

An example of using $replacerx() with /ren and we /enqueue the /ren operation so we can review the operation before executing it.

Code:
/enqueue /ren "%p%f" "%p$replacerx("%f", "^([0-9]+[\s][-]) (.*)\.(.*)$","\2.\3")"
Input: C:\path\3938 - How to win.txt
Output: C:\path\How to win.txt

In the queue window the operation would appear as
Code:
/ren "C:\path\3938 - How to win.txt" "C:\path\How to win.txt"
Also if the pattern fails to match or the result is an empty string then the original input value returned.

I have some additional testing to do before I make these changes available.

As expected, the more testing I do the more problems I find.
bigstar is offline  
Closed Thread

Tags
command, custom, opensight, provide, suggestions


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 02:04 PM.

Parts of this site powered by vBulletin Mods & Addons from DragonByte Technologies Ltd. (Details)