- Posted by
- I've found a way to make this (sort of) work: By using (?!.) as another way of saying "end of file" (after all, only at the end of the file you can be certain that it's impossible to match any further characters), you can construct a regex that doesn't need the \Z end-of-file anchor which UE doesn't...Posted in Find/Replace/Regular Expressions
-   Topics
-   Views
- pietzcker
Nov 21, 2011
- It is true that UE doesn't support the end-of-file anchor (\Z). But you can simulate it using a negative lookahead assertion . Search (using Perl regular expressions) for (?s)\r\n(?!.) and replace with nothing. This regex matches a newline ( \r\n ) only if it is not followed by any other character (...Posted in Find/Replace/Regular Expressions
-   Topics
-   Views
- pietzcker
Oct 31, 2011
- Another way would be to search for <tag1>(.*?)</tag1><tag2>(?!\1).*</tag2> This matches pairs of tag1/tag2 tags that don't have the same content.Posted in Find/Replace/Regular Expressions
-   Topics
-   Views
- pietzcker
Oct 09, 2011
- Another option would be to search for h(?:&lnk)?i(?:&lnk)?g(?:&lnk)?h(?:&lnk)?l(?:&lnk)?i(?:&lnk)?g(?:&lnk)?h(?:&lnk)?tPosted in Find/Replace/Regular Expressions
-   Topics
-   Views
- pietzcker
May 10, 2011
- Activate Perl regular expression and make sure that the case sensitivity option is turned on. Then search for (?<!^)(?<![.!:?] )([A-Z]) and replace with \L\1 The first regex checks that the current character is neither at the start of a line nor directly following a punctuation character and a space...Posted in Find/Replace/Regular Expressions
-   Topics
-   Views
- pietzcker
Feb 09, 2011
- A little follow-up: I have submitted a change request to the TortoiseHg configuration, and this has been implemented in version 1.1 (Mercurial 1.6.0). So now TortoiseHg will automatically detect and use UltraCompare Pro (if it is installed) for merge and diff operations. Cheers, TimPosted in UltraCompare General Discussion
-   Topics
-   Views
- pietzcker
Jul 02, 2010
- This tool command needs to have the "Windows program" radio button checked. It assumes that the current file has been saved to disk (you might want to turn on the option "Save current file first"), and that the clipboard contains the regular expression that you want to edit. After leaving RegexBuddy...Posted in Find/Replace/Regular Expressions
-   Topics
-   Views
- pietzcker
Jun 04, 2010
- I suggest that you write a feature request to IDM asking for regular expression support in the ignore strings. I have done that before, but the more users ask for it, the higher the chance of it being implemented earlier. Other compare tools like Beyond Compare have this functionality already, after...Posted in Text Compare and Merge
-   Topics
-   Views
- pietzcker
May 26, 2010
- Hm, diplomatic solution required :) You could do it in a single regex, namely (?s)\A((?!keyword).)*keyword((?!keyword).)*\Z if UE's regex engine didn't have so many troubles with regexes that need to span multiple lines. If you throw this regex into a Perl script or an editor with a more robust rege...Posted in Find/Replace/Regular Expressions
-   Topics
-   Views
- pietzcker
May 06, 2010
- The most elegant solution would probably be using a script. I'm not a JavaScript guy, so I can't show you how to do that (I prefer Python for this kind of work). But you could also do it using a macro. The only conditions are: 1. The first header has to be longer than all following lines of the firs...Posted in Macros
-   Topics
-   Views
- pietzcker
May 03, 2010
- Well, perhaps there is another way to achieve what you want: You could use the command "Column - Convert to Fixed Column" to convert your pipe delimited file to equal column size, then activate Column mode, select the third column, and press F5 (Format/To Caps). Then convert the file back to pipe de...Posted in Find/Replace/Regular Expressions
-   Topics
-   Views
- pietzcker
May 02, 2010
- This is certainly possible. The complexity of the solution (assuming you want a fully automated one) depends on a few factors, though. For instance, is the length of the sections (=number of lines between headers) constant and known in advance?Posted in Macros
-   Topics
-   Views
- pietzcker
Apr 27, 2010
- The feature is there, and there is a checkbox to enable it. Show me one editor that changes case sensitivity behavior when switching from plain text search to regex search. It would be very bad usability practice to change a setting implicitly when the user selects a different option elsewhere (unle...Posted in Find/Replace/Regular Expressions
-   Topics
-   Views
- pietzcker
Apr 17, 2010
- I disagree. First, "Perl regex" is a commonly used term that might better be called "Perl style regular expression". It doesn't mean that a native Perl regex can be used in an editor that support Perl regexes (otherwise you'd need to add / around the regex and use mode modifiers like /m etc.). It ju...Posted in Find/Replace/Regular Expressions
-   Topics
-   Views
- pietzcker
Apr 16, 2010
- Interesting. I wonder if this is related to a bug in UltraCompare where a command line invocation of uc.com garbles the commands passed to uc.exe if the file paths contain spaces. IDM have already acknowledged this; it's currently still there in UC 7.10.0.1010, but you can expect it to be fixed shor...Posted in Configuration/INI Settings
-   Topics
-   Views
- pietzcker
Apr 09, 2010