Hi guys needed this,
294721 string 64 long in 30 seconds not bad for a filter like this!
scan for to many repeating chars, put result for every char in array
scan array to see if a char (any char in the range 33 to 255)
is more then 5 times in the string.
Works ok, so I thought lets share it.
But if one off you know a faster way ...
294721 string 64 long in 30 seconds not bad for a filter like this!
scan for to many repeating chars, put result for every char in array
scan array to see if a char (any char in the range 33 to 255)
is more then 5 times in the string.
Works ok, so I thought lets share it.
Code:
WHILE NOT EOF(1) LINE INPUT #1, a$ FOR I = 33 TO 255 Z(i) = 0 Z(i) = TALLY (a$, CHR$(I)) NEXT ARRAY SCAN Z(33), >5, TO R IF R THEN ....... WEND

Comment