I want to find and capture everything and anything unless until I encounter two spaces in a row ... I was trying this: ([^ {2}]*)...
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 ...
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...
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...
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...
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...
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...
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....
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...
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...
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...
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...
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...
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...
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...
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...
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...
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 ...
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...
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 ...
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...
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?...
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,...
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...
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...
531
milan.boran@...
milanboran
Apr 8, 2012 1:59 am
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...
532
flo.gehrke
Apr 8, 2012 11:10 am
... Milan, ... Copy the clip to clipboard, open any clipbook, and insert the clip with 'Add from clipboard' (using the context menu inside the left pane of the...
533
milan.boran@...
milanboran
Apr 20, 2012 12:01 pm
Yes, this problem has been solved. Many thanks to all who helped, especially Don, Flo, Jonas, and Thomas. Best regards, Milan ... -- ... Legal Note This...
534
Robert Bull
barlennan
Apr 29, 2012 4:09 pm
I wanted a copy of my library wish list on my own PC (and Palm), so copied and pasted it into a file. It was messy, so I made a simple AWK ... # For cleaning...
535
mycroftj
May 10, 2012 1:55 am
Is there a relatively simple reg exp to find the following? Date in format mm/dd/yyyy OR yyyy/mm/dd followed by a space followed by an open paren followed by...