- Posted by
- Thanks, Mofi. That works great, and I have updated my script to use replace rather than match .Posted in Scripts
-   Topics
-   Views
- DGMarchant
May 10, 2021
- With enough searching, I eventually found my own answer: "asFilePath" contains, as you might expect, the file path. To get the CCN number, I did this: asCCN = asFilePath.match(/\b\d{4}\b/g); Thanks!Posted in Scripts
-   Topics
-   Views
- DGMarchant
May 07, 2021
- Perfect, thanks! One more thing: how would you also extract out the CCN number (just the number part) from the path into a separate variable? Thanks so much.Posted in Scripts
-   Topics
-   Views
- DGMarchant
May 07, 2021
- I have a script that contains an array of file names with the full UNC path. For the first file only , I need to get a partial path out of it. The paths will have all a similar format: ...\CCN 6241\Install\Back_End... I need to get the UNC path up through the "Install" folder, if it exists, otherw...Posted in Scripts
-   Topics
-   Views
- DGMarchant
May 06, 2021
- Thanks, Fleggy. That did the job.Posted in Find/Replace/Regular Expressions
-   Topics
-   Views
- DGMarchant
May 14, 2019
- I need to do a particular search on several hundred files, and output the file name and search results into a separate file or window. The files are all in one folder, and range in size from 45 KB (under 1000 lines of text) to over 19 MB (almost 400,000 lines). Here's the tricky part: I need to sear...Posted in Find/Replace/Regular Expressions
-   Topics
-   Views
- DGMarchant
May 10, 2019
- I incorporated those changes and made one more. I eliminated this line: var n = UltraEdit.document.length And just put the UltraEdit.document.length directly in the FOR: for (i=0; i < UltraEdit.document.length; i++) So my full script now looks like this: var files = ""; for (i=0; i < UltraEdit.docum...Posted in Scripts
-   Topics
-   Views
- DGMarchant
Feb 15, 2018
- After playing around with it a bit, I simplified and shortened it up a little. This version leaves a blank line at the end of the new file with all the file names listed, but that's good for my purposes. var n = UltraEdit.document.length var files = ""; for (i=0; i<n; i++) { UltraEdit.document[i]....Posted in Scripts
-   Topics
-   Views
- DGMarchant
Feb 14, 2018
- Perfect! I hadn't considered saving all the values into one variable and then just writing it all out at once. I was trying to write each file one at a time. Thanks!Posted in Scripts
-   Topics
-   Views
- DGMarchant
Feb 14, 2018
- Is there any way to write the file paths into a new blank document rather than the output window?Posted in Scripts
-   Topics
-   Views
- DGMarchant
Feb 14, 2018
- I have written a script to copy the full path and file name to the clipboard and put a double quote before and after it, and that works fine. I tried to extend the script to loop through all open files, quoting the file path as before, and pasting the results into a new blank document. So far, all I...Posted in Scripts
-   Topics
-   Views
- DGMarchant
Feb 14, 2018
- A good question, then, is why is Highlight all selected always case-sensitive? Whether or not you use this feature, others do, and it would be more useful (IMHO) if it was either case-insensitive, or configurable, as search is.Posted in Find/Replace/Regular Expressions
-   Topics
-   Views
- DGMarchant
Jan 02, 2018
- I've noticed that the Highlight all selected feature in UE v24.xx only highlights text that is in the same case as the original selected text. Is there any way to make it ignore case? For instance, my code (well, I didn't write it but I get to modify it) has both FNC_PTRAN and fnc_ptran . Selecting...Posted in Find/Replace/Regular Expressions
-   Topics
-   Views
- DGMarchant
Dec 19, 2017
- Thanks, Mofi, I'll try that.Posted in UltraFinder General Discussion
-   Topics
-   Views
- DGMarchant
Mar 28, 2014
- What about other binary file types besides PDFs and DOCS? We're considering buying UF version 13.10.0.26 (the latest, as of 03/27/2014), but we need to be able to search through binary file types. I have downloaded the trial version, but it is giving errors (sometimes just outright crashing) when se...Posted in UltraFinder General Discussion
-   Topics
-   Views
- DGMarchant
Mar 27, 2014