- Posted by
- Here is the script with file preparation before lookup. function PrepareAndLookup() { var sLineTerm; if (UltraEdit.activeDocument.lineTerminator < 1) sLineTerm = "^p^p"; else if (UltraEdit.activeDocument.lineTerminator == 2) sLineTerm = "^n^n"; else sLineTerm = "^r^r"; // Define the non re...Posted in Scripts
-   Topics
-   Views
- Mofi
Oct 29, 2018
- You could have saved both of us a lot of time on explaining the task better from the beginning with real data. The real task requirements are: A text file should be processed with a file size about 1 to 2 MiB. The text file contains only ASCII characters, no Unicode characters. The text file contain...Posted in Scripts
-   Topics
-   Views
- Mofi
Oct 28, 2018
- Well, if you are interested in finding lines in a large file of a just a small set of well known lines like 20 lines, UltraEdit would be also very fast to find them in the large file. A single Perl regular expression find could be used most likely for that task if the lines are short. But you asked ...Posted in Scripts
-   Topics
-   Views
- Mofi
Oct 26, 2018
- No regular expression find can do that in any application on a large file. I wrote for this task first following UltraEdit script and tested it with UltraEdit v16.30 on the small example: if (UltraEdit.document.length > 0) // Is any file opened? { // Define environment for this script. UltraEdi...Posted in Scripts
-   Topics
-   Views
- Mofi
Oct 26, 2018