... Kees: I think above is probably a good answer to a different question :-) Your method would allow a new instance of Notetab to be fired up and one clip to...
17675
Don - HtmlFixIt.com
dpasseng
Mar 29, 2008 12:45 am
you did read help under clip programming variables? ^!SetArray %VariableName%=ArrayData (added in v4.6) Similar to the ^!Set command but creates an array from...
17676
buralex@...
alecb3ca
Mar 29, 2008 1:25 am
"Don - HtmlFixIt.com" <don@...> said on Mar 28, 2008 20:45 ... The one thing I'd add to Don's summary is how to process elements of an array in a...
17677
Ed Wilson
eddwilsony
Mar 29, 2008 5:53 pm
Yes, Don, I did read the help, but Alec's example includes the one line ^!set %thisVal%=^%theArray^%i%% which illustrates my problem - embedding the index as...
17678
Don - HtmlFixIt.com
dpasseng
Mar 29, 2008 6:10 pm
... Yep, this line is key. You can just use the array item as well directly without setting something else equal to it. Also the first element in the array is...
17679
Alec Burgess
alecb3ca
Mar 29, 2008 11:33 pm
Ed: If you haven't found them already two clips in the "SampleCode" library distributed with Notetab illustrate the ^%theArray^%i%% method of accessing an...
17680
Don - HtmlFixIt.com
dpasseng
Mar 30, 2008 3:08 am
... And depending what you want, if you just use ^%varC% it is the values in the array with the delimiter ... in essence pre-concatenated if you will. example:...
17681
Robin Chapple
d9790
Mar 30, 2008 8:16 am
I need to replace the first and second comma in each line with a tab. How do I do that? Many thanks, Robin Chapple...
... No. That would go on with the third comma and so forth. So first we have to work on one line: ^()$ The we seek the first two commata, first meaning there...
17684
Robin Chapple
d9790
Mar 30, 2008 9:27 am
Thanks Axel, The explanation was also most useful. Robin...
17685
Don - HtmlFixIt.com
dpasseng
Mar 30, 2008 12:54 pm
... I think it would work just fine. The jump will skip to the next line. Have you tried it? I would add a jump doc start. And again it assumes that there...
17686
Axel Berger
absalom_nemini
Mar 30, 2008 1:17 pm
... Admittedly no. And not knowing ^!Jump I mistook it for a variant of SKIP, i.e. the looping in your suggestion. My mistake. Axel...
17687
Don - HtmlFixIt.com
dpasseng
Mar 30, 2008 1:24 pm
... BTW I wasn't meaning to be critical. I understood what s/he was doing because I was the king of not using regex until 5.x partly because I didn't...
17688
hsavage
hrs62930
Mar 30, 2008 1:55 pm
... Axel, Ed, Don, If I decipher both methods correctly, they both assume a period(.) and (cr) after each complete sentence, which would signal a complete ...
17689
Don - HtmlFixIt.com
dpasseng
Mar 30, 2008 2:11 pm
... I don't think either requires a period, but both would require a newline ^P or (\r\n) or whatever it is in context. In the regex version, (.*?)$ at the end...
17690
Axel Berger
absalom_nemini
Mar 30, 2008 2:37 pm
... What period? What sentence? The question was about lines, not sentences or paragraphs. A period is treated just like any other character by both solutions....
17691
hsavage
hrs62930
Mar 30, 2008 7:11 pm
... Axel, Let's not forget, in NoteTab, a line probably is a paragraph, however many sentences there are in the line or paragraph. Carriage returns delineate...
17692
Axel Berger
absalom_nemini
Mar 31, 2008 12:24 am
... Sorry, but I strongly disagree. What you say is the Microsoft Word standard and true for plain ASCII editors. But in NoteTab's main use linefeeds are...
17693
Flo
jonas_ramus
Mar 31, 2008 1:29 am
... The following clip replaces the first comma in each line with a tab. If there is a second comma in the line, it will be replaced too. If there is third or...
17694
Don - HtmlFixIt.com
dpasseng
Mar 31, 2008 1:39 am
... I presumed this to be true....
17695
Don - HtmlFixIt.com
dpasseng
Mar 31, 2008 1:44 am
... Excellent idea. A=All W=Whole document R=Regex S=Silent However, I would use the * instead of the + I think. * is equivalent to {0,} + is equivalent...
17696
Axel Berger
absalom_nemini
Mar 31, 2008 3:19 am
... A question, as I have never yet used such a complicated term inside one pair of parentheses: What does the non greedy specifier apply to there exactly and...
17697
Don - HtmlFixIt.com
dpasseng
Mar 31, 2008 3:39 am
... Let me pretext this with "I'm a regex ID10T". I think she did say the first two comma's on each line, so the anchor assures we are at the beginning of a...
17698
Flo
jonas_ramus
Mar 31, 2008 2:06 pm
@Don ... I just took Robin's question literally. If it's a CSV, we probably have to reconsider the whole thing. For example: What to do if the third field is...
17699
Jeff Scism
scismgenie
Mar 31, 2008 2:22 pm
... Yep sure can, I work with CSV charts all the time where the original creator placed the surname and forenames in separate columns, and I want to combine...
17700
dracorat
Mar 31, 2008 5:22 pm
I never really trust the "." specifier when combined with a * or + as how it operates tends to be hit-and-miss (sometimes only grabbing the first thing...
17701
Don - HtmlFixIt.com
dpasseng
Apr 1, 2008 12:43 am
... Hi Keith, Good idea. Does that need to be non-greedy however to be safe? So you are saying start of line/not comma/comma/not comma/comma (but the not...
17702
Axel Berger
absalom_nemini
Apr 1, 2008 4:29 am
... I think not. When you say "no commas" it has to stop at the very first one, however greedy it might prefer to be. Axel...