- Posted by
- Thanks for the suggestions. The boolean vs integer flags I can't imagine would make that much of a difference (or rather, it shouldn't). As for the second set of modifications, it's true that it can be optimized - I've written function libraries that I use all the time, so I end up putting my script...Posted in Scripts
-   Topics
-   Views
- Bracket
May 25, 2012
- A long shot but Bracket did you end up writing a script to do this? Actually, I did. It serves my needs perfectly. It's possible that you might need to tweak the RegEx strings for your own documents. But see how this works for you: var WorkingFile = UltraEdit.activeDocument; // Function to execute ...Posted in Scripts
-   Topics
-   Views
- Bracket
May 25, 2012
- I'm working on a script that converts PM times to 24 hour format. The core of that script is this: var WorkingFile = UltraEdit.activeDocument; WorkingFile.copy(); Hour = UltraEdit.clipboardContent; Hour = parseInt(Hour) if (Hour != 12) { Hour += 12; } UltraEdit.clipboardContent = Hour; WorkingFile.p...Posted in Scripts
-   Topics
-   Views
- Bracket
Aug 02, 2011
- Those four black background buttons are a visual blight. I can't stand them.Posted in Editor Display
-   Topics
-   Views
- Bracket
Apr 30, 2011
- In other words, the very last line of the script, "KeywordCaseChange("keyword1|keyword2|keyword3");" is the only place you need to enter the list of keywords you wish to act upon (seperated by a pipe character, if you are using more than one). You are not supposed to put them anywhere else in the sc...Posted in Scripts
-   Topics
-   Views
- Bracket
Nov 18, 2010
- Not difficult. Unfortunately, UltraEdit doesn't have very good RegEx support, and Perl RegEx has some limitations that keep us from dealing with this issue gracefully. As a result, we need to hack a solution via a different route. The following script will do as you ask. It will look for "--" as wha...Posted in Scripts
-   Topics
-   Views
- Bracket
Nov 17, 2010
- I tried it with %, so that would make %(21.111.2[2-7].[0-9]+) or %21.111.2[2-7].[0-9]+, , right? But that doesn't work! EDIT: So it should become something like: [NO digit/point OR digit directly before it, but an empty space)21.111.2[2-7].[0-9]+. Am I on the right track? There are a few problems w...Posted in Find/Replace/Regular Expressions
-   Topics
-   Views
- Bracket
Nov 10, 2010
- You're very welcome. :)Posted in Find/Replace/Regular Expressions
-   Topics
-   Views
- Bracket
Oct 26, 2010
- Easy. Do a Perl RegEx Replace All: Find Text: (\r\n){2,} Replace Text: \r\n\r\n\r\n Now, you said "x number of blank lines", you didn't say "anything greater than two blank lines". So, the RegEx I provided will do this where you only have one blank line as well. If this was not your intention, than ...Posted in Find/Replace/Regular Expressions
-   Topics
-   Views
- Bracket
Oct 26, 2010
- The reason your modification isn't working is because "\b" references a word boundary, and a semicolon *is* a word boundary. If you want to make this work, you need to remove the "\b" on either side of the semicolon which means using (?s)\bword1\b.*?;Posted in Find/Replace/Regular Expressions
-   Topics
-   Views
- Bracket
Oct 22, 2010
- It's easily done, but requires scripting. I wrote a script for you that will search for a list of keywords, and turn all of them into UPPERCASE. var WorkingFile = UltraEdit.activeDocument; function KeywordCaseChange(SearchString) { WorkingFile.top(); // Do initial search for string UltraEdit.perlReO...Posted in Scripts
-   Topics
-   Views
- Bracket
Oct 13, 2010
- Note that UltraEdit does *not* support RegEx fully. UltraEdit cripples RegEx by applying it on a line by line basis, whereas RegEx is supposed to apply to the entire document for true multi-line support. I love UltraEdit, but when I need more advanced RegEx support, I use JGSoft's EditPad Pro. I wis...Posted in Find/Replace/Regular Expressions
-   Topics
-   Views
- Bracket
Mar 04, 2010
- Unfortunately, not all the strings are that long. And shorter strings can be mistaken for email addresses. I was able to get a serviceable result by limiting the search to the characters that Base64 uses: (?:[A-Za-z0-9+/=]{20,}) So, I'll use that. Thanks.Posted in Scripts
-   Topics
-   Views
- Bracket
Jan 30, 2010
- I have text files that are a combination of plaintext and base64. I'm looking to write a script that will decode the base64 sections. What I need to know is whether there is any way to programmatically detect them, so they can be decoded without touching the plaintext. Does anyone know how I can do ...Posted in Scripts
-   Topics
-   Views
- Bracket
Jan 29, 2010