Ok, I'm trying to work on a plug-in provided by Sketch, modified by Nick.
But i'm noob to Lua..
trying to make logical sense of this plug-in is some what, beyond me at this point. I'm scratching at the edges striving to make this work out. I've made a little headway but. i really think it's just beyond me at this point. not to mention it's a night mare to even look at...
I need some help from higher up.
Heres my modifications, Yes it's an xml but really it's just a standard trigger, with a Lua script. (Having it be xml plug-in appears to do little more then make it easier to disable and enable, or tweak and what not. and also provides room for comments on usage.) So don't be afraid of it if you've never beaten open a plug-in before.
Now before you scroll down, understand that i've got most of this working, accept that the Variable "cut" with relation to it's OR evaluations, defaults to the first evaluation found, then when it finds something matching the second evaluation in never again searches for the first in the list of OR's. Actually... it's harder to explain it, just go try out this plugin, and then in any world SAY the line following line:
you'll note that it is searching backwards, and finds all the first www. matches. but as soon as it encounters a ftp:// match, in never again looks for a www. match, (or any others between it like http://)
Here is the plug-in that I've spent the last 3 days trying to work with for the benefit of us all.
[oh and for the record, the MXP/Pueblo link parser thingie doesn't work for Tapestries Muck, so yes i need to use this script.]
Heres the code.
PS: Nick Gammon I tried to put your name in the author section but it we are limited to 32 characters there. :p
But i'm noob to Lua..
trying to make logical sense of this plug-in is some what, beyond me at this point. I'm scratching at the edges striving to make this work out. I've made a little headway but. i really think it's just beyond me at this point. not to mention it's a night mare to even look at...
I need some help from higher up.
Heres my modifications, Yes it's an xml but really it's just a standard trigger, with a Lua script. (Having it be xml plug-in appears to do little more then make it easier to disable and enable, or tweak and what not. and also provides room for comments on usage.) So don't be afraid of it if you've never beaten open a plug-in before.
Now before you scroll down, understand that i've got most of this working, accept that the Variable "cut" with relation to it's OR evaluations, defaults to the first evaluation found, then when it finds something matching the second evaluation in never again searches for the first in the list of OR's. Actually... it's harder to explain it, just go try out this plugin, and then in any world SAY the line following line:
fission www.fusion.org starscape void ftp://folding.quantium.emersion singularity http://fantastic.voyage.exostential www.xor.com WWW.www.Wow interdimensional mailto://conceptual@therom.isometric http://www.worlds.density.wwww.interface inditerminate hypothetical wwww.water.earth.fire.air ftp://archive.entity.theroy WWWW.www.Wow www.womd.wrong
you'll note that it is searching backwards, and finds all the first www. matches. but as soon as it encounters a ftp:// match, in never again looks for a www. match, (or any others between it like http://)
Here is the plug-in that I've spent the last 3 days trying to work with for the benefit of us all.
[oh and for the record, the MXP/Pueblo link parser thingie doesn't work for Tapestries Muck, so yes i need to use this script.]
Heres the code.
PS: Nick Gammon I tried to put your name in the author section but it we are limited to 32 characters there. :p