Hi Flo Doing this the 1st time, do I put this into a text file and name it somehow and load it as a clip or so into NoteTab? Please advise. ... What should I...
530
jonas_ramus
Apr 7, 2012 11:32 pm
... Running the clip below against... hus hus hus hus2 hus2 hus345 hus345 hus345 hus345 hire uni unity the result is... hus2 2 hus2 2 hus345 4 hus345 4 hus345...
529
milan.boran@...
milanboran
Apr 7, 2012 8:12 pm
... Yes, as if you would read from right to left. Basically backward sort or reverse sort (which is different from as/des-cending sort). ... Yes. Thanks for...
528
milan.boran@...
milanboran
Apr 7, 2012 5:44 pm
... Yes, either that, or as if read from the right. ... Just need the count of dupes per string/line/entry. ... Only the count. If there is a sorted output,...
527
Don
don@...
Apr 7, 2012 5:38 pm
So you want a count of how many times something appears ... I get that ... but that sort order is by last character? so 2, 5, e, i, si, su Is that the plan?...
526
Thomas Gruber
computerhusky
Apr 7, 2012 5:31 pm
Hi, if you say right to left, do you mean sorting as if the string was reversed in each record? I'd suggest you write a script that creates a new file with the...
525
milan.boran@...
milanboran
Apr 7, 2012 5:31 pm
Yes, good idea, Don. ### Before ### hus hus hus hus2 hus2 hus345 hus345 hus345 hus345 hire uni unity ### After ### hus2 2 hus2 2 hus345 4 hus345 4 ...
524
Don
don@...
Apr 7, 2012 5:21 pm
While I'm sure we can figure it out with a script/clip, I'm clueless what you are talking about. Maybe a small before and after sample and you will get a much...
523
milanboran
Apr 7, 2012 11:36 am
Hi NTB-Scripters! Using NoteTab, right now I try to crack a problem re a large list, ca 2mio records, stripped all other stuff away, so that only the strings ...
522
Alec Burgess
alecb3ca
Jun 22, 2011 8:59 pm
... RegexBuddy is great. I can never remember the syntax for the four lookaround patterns and often open it up just for that :-) One caveat - the version of...
521
Don
don@...
Jun 22, 2011 3:30 pm
Thanks Axel, I did respond to much of that right away, but I guess missed the "may or may not occur" part -- they will always occur on each line or the line...
520
Axel Berger
absalom_nemini
Jun 22, 2011 3:23 pm
... I think I said so at the time. What my solution cared for was 1) The find may be more than one line. 2) Double spaces may or may not occur, if not select...
519
Art Kocsis
artkns
Jun 22, 2011 9:23 am
John, Not quite. Look ahead and look behind assertions are very useful, I agree but \K and (?<=...) [the positive look behind assertion] are NOT EXACTLY the...
518
John Shotsky
shotsky1
Jun 22, 2011 2:12 am
[Off to look up (?= ) and see what it means.] I use it often. It is the inverse of \K - which doesn't capture anything before, but it evaluates it. (?=), when...
517
Don
don@...
Jun 22, 2011 1:26 am
From Regex Buddy (my newest friend ...): "Positive lookahead works just the same. q(?=u) matches a q that is followed by a u, without making the u part of the...
516
Don
don@...
Jun 22, 2011 1:22 am
Yes the two spaces are certain to occur :-) I am limited I supposed in my understanding so I didn't make the assumption you made. Now that you explain it like...
515
Axel Berger
absalom_nemini
Jun 21, 2011 11:55 pm
... Yes, you're right and that's probably better than my ^!Find "(?s)(.+?)( {2,})" RSTI1 but it has the same problem. Don specified ... which I took to mean...
514
Eb
ebbtidalflats
Jun 21, 2011 9:18 pm
Right you are. I started out commenting on the placement of quatifiers. Then I was on a roll, but forgot about the _not_ two spaces. ... Actually, I would...
513
Don
don@...
Jun 20, 2011 8:38 pm
I am actually exporting this one to another purpose, but testing in both notetab and regex buddy....
512
Axel Berger
absalom_nemini
Jun 20, 2011 6:34 pm
... Nope. What you suggest equals "two instances of 'not space'". What Don wants is "anything but two spaces in row". Quite different. All your finds will have...
511
Eb
ebbtidalflats
Jun 20, 2011 6:19 pm
Move the quatifier outside of the class, Inside the class you're just adding the "{2}" characters to the class. ([^ ]{2}) If you want to expand this to mean 2...
510
Axel Berger
absalom_nemini
Jun 18, 2011 5:26 pm
... Not that I'm aware of, but if I'm wrong I'm sure Sheri or Diodeom will me right. Axel...
509
John Shotsky
shotsky1
Jun 18, 2011 4:43 pm
Negative classes work by individual characters only. You could change any instance of two spaces to a token character, then negate class that, but that's...
508
Don
don@...
Jun 18, 2011 4:26 pm
Hi Axel, It is part of a longer expression. It is on a single line. (.+?) {2,} Don't know why I was struggling I guess ... other than I was trying to say...
507
Axel Berger
absalom_nemini
Jun 18, 2011 3:32 pm
Don wrote:> ... You don't specify how general you need it to be. There may be more than one of those several space markers or none and the marker may be more ...
506
Don
don@...
Jun 18, 2011 1:14 pm
I want to find and capture everything and anything unless until I encounter two spaces in a row ... I was trying this: ([^ {2}]*)...
505
Alec Burgess
alecb3ca
Apr 4, 2011 9:07 pm
Thanks Eb - \x30 works. when I was messing around with this I had tried the same thing but realize now that I was trying (the meaningless) uppercase \X30...
504
Eb
ebbtidalflats
Apr 4, 2011 1:19 pm
Ok, try this (hex code '\x3039; for the first zero): $2\x30000 Eb...
503
Alec Burgess
alecb3ca
Apr 1, 2011 9:45 pm
... It does allow the $2 to be substituted but ^%empty% does not appear to get translated. I get results like this: 45.6 ==> 0000045.6^%empty%0000 -- Regards...
502
Eb
ebbtidalflats
Apr 1, 2011 8:08 pm
Alec, I'm not sure this will work, but the variable ought to break up the output pattern: ^!replace "\b(\d+)92;.?(\d*)\b" >> "00000$1.$2^%empty%0000" rwais ...