... Sorry my last post had junk in it. Let me know what you think. I'd like to see what you have now. Ian H="_incfile" ^!SetDebug Off ; Get the file name (no...
23485
joy8388608
Dec 4, 2012 10:46 pm
... Very interesting thoughts from everyone and I'm kind of happy that there have been no "why didn't *I* think of that" answers so far. To clarify some...
23484
Eb
ebbtidalflats
Dec 4, 2012 6:18 pm
Joy, John's excellent suggestion eliminates a lot of code, to left-pad the version number. Separating the version number from the name makes isolating the...
23483
flo.gehrke
Dec 4, 2012 3:46 pm
... If I'm not mistaken this should match your data and expected results: ; Long line start ^!SetArray...
23482
flo.gehrke
Dec 4, 2012 3:17 pm
... That's why I said there could be a problem with the dot and made a second proposal. Would you mind testing this? Thanks. Flo P.S. It's always a problem to...
23481
John Shotsky
shotsky1
Dec 4, 2012 12:28 pm
If I were doing it, I wouldn't start with leading zeros and then fight them. I'd choose an actual number, such as 10000 as my 'zero' and increment that. ...
23480
Axel Berger
absalom_nemini
Dec 4, 2012 12:11 pm
... To be honest, I had not tested, just looked at it, and you're right. It works because you use the greedy find, something I almost never do as a mater of...
23479
flo.gehrke
Dec 4, 2012 10:42 am
... How come? For me, it's perfectly matching the whole string 'Axel{Berger}Odenthal39;. Please test it again. I don't have your complete data, so it's difficult...
23478
Ian NTnerd
indiamcq
Dec 4, 2012 9:08 am
I don't think this is elegant. (Brute force comes to mind). I could not find any RegEx in string handling that was useful for this and would eliminate the...
23477
Axel Berger
absalom_nemini
Dec 4, 2012 6:29 am
... Not quite. Padding as such was, and Joy said, he/she's got that. The new question was finding out to what length to pad. Axel...
23476
Axel Berger
absalom_nemini
Dec 4, 2012 6:27 am
... Don't know about elegant. You have isolated your 0098 or 999. Get its length and save. Increment. Get length of result and save max of that and the former...
23475
Don
dpasseng
Dec 4, 2012 12:00 am
This was answered just yesterday Joy. Search the messages from yesterday....
23474
joy8388608
Dec 3, 2012 11:52 pm
I thought this would be easier than it was and can't shake the feeling that there is a better way than what I can come up with so I ask for creative ideas...
23473
Axel Berger
absalom_nemini
Dec 3, 2012 4:32 pm
... I'd rather not include them, that's just what Match Brackets does. I'd have had to eliminate them later. ... Yes. Or rather some LaTeX construct like \v{s}...
23472
flo.gehrke
Dec 3, 2012 1:36 pm
... You will achieve the same result without ^$StrCopy$ when writing... ^!Find "(?x)92;\foreignlanguage92;{greek92;} (\{ ( ([^{}]++|(?1) )* )\} )" RS2 So far,...
23471
m.feichtinger
Dec 2, 2012 10:34 pm
From the help file of NTP62 "Regular Expressions, Recursive Pattern": \( ( [^()]++ | (?R) )* \) Or in a lager pattern: ( \( ( [^()]++ | (?1) )* \) ) In your...
23470
twinlor
Dec 2, 2012 12:59 am
Thanks, Axel. I will implement tomorrow. I don't see exactly how but I'll be back if necessary. PLEASE DON'T TELL ME YET. I need to learn. - David...
23469
Axel Berger
absalom_nemini
Dec 2, 2012 12:08 am
... Yes, that's an oldie. If %var% is your number, then what you use in the filename is: ^$StrCopyRight("000^%var%";3)$ Axel...
23468
twinlor
Dec 1, 2012 11:56 pm
Hi All, I am building a library to hold file renaming clips. Thanks to our good friend Jody I've got a starting point.. his clip 'Rename...
23467
Axel Berger
absalom_nemini
Dec 1, 2012 5:59 pm
... Yes, I was afraid I might have to resort to somthing like that. The shame is, NT already has everything needed in Search-->Match Brackets, but no Clips...
23466
Eb
ebbtidalflats
Dec 1, 2012 5:05 pm
When matching tag paris in html, I use a loop and a stack to match up pairs. For nested brackets a simlar technique might work. Except there is no need to use...
23465
Axel Berger
absalom_nemini
Dec 1, 2012 4:46 pm
In my documents I have this string: \foreignlanguage{greek}{Qr'onos} To convert that from TeX to HTML I need to find the greek word "Qr'onos" Easy: ^!Find...
23464
Axel Berger
absalom_nemini
Dec 1, 2012 4:38 pm
... There may be more than one such foreign block and there may be more than one lnguage, Greek and Hebrew are other possibilities. That's why I needed the R...
23463
flo.gehrke
Dec 1, 2012 4:25 pm
... Interesting solution! Maybe you could even omit marking those characters with 'R'. Search those characters inside the selection, assign them to an array,...
23462
Axel Berger
absalom_nemini
Nov 30, 2012 3:43 pm
In View-->Options-->Files I've set "Match Directories". It seems that when no file is open NoteTab remebers the last "Save As" directory. I would find it much...
23461
joy8388608
Nov 30, 2012 3:34 pm
... How about a set of farclip subroutines that remember the current selection and reselect the remembered selection? That would be a nice enhancement! Joy...
23460
Axel Berger
absalom_nemini
Nov 30, 2012 3:21 pm
... To finalize the thread, this is what I've come up with and what seems to ... ^!Jump TEXT_START ... ;long line start ^!Find...
23459
Axel Berger
absalom_nemini
Nov 29, 2012 5:58 pm
... That If ought to be superfluous - the A already does the same. And yes, thats exactly what I'm going to do, except that with Replace I can only set a...
23458
John Shotsky
shotsky1
Nov 29, 2012 4:39 pm
I often do things like this, and find it easiest to do the initial find, then use replaces within that find, then loop back to do another find. You can use...
23457
Axel Berger
absalom_nemini
Nov 29, 2012 4:16 pm
... Yes, but it needs to be a Find H inside a selection and the first hit destroys it. I'll now use a regex ^!Replace to mark the russian letters and a second...