UltraEdit Professional Text/HEX Editor
Version 21.10.0.1032
Windows 7 Ultimate
Hello all. I am attempting to use the Find in Files feature with a RegEx that returns results that span several lines.
I would like to have those results written to a new edit window in their entirety; however, when matches occur they result written to the edit window is ONLY the first line up to the newline character.
I think the resulting data and expression may best illustrate what I mean.
Doing this same search with a normal find yields the entire match including the <crlf> in the Find String List window whenever a newline occurs. I can also select any or all of those results and then paste them to a new edit window and attain all of the match data (not just the first line). Hence the following:
From reading the help file, it seems the only string result data is contained in the $S variable, and this variable cannot be altered.
Is there a way that I can have Find in Files produce the entire match without truncating the match at the newline character?
Thank you in advance!
Version 21.10.0.1032
Windows 7 Ultimate
Hello all. I am attempting to use the Find in Files feature with a RegEx that returns results that span several lines.
I would like to have those results written to a new edit window in their entirety; however, when matches occur they result written to the edit window is ONLY the first line up to the newline character.
I think the resulting data and expression may best illustrate what I mean.
Code: Select all
Find '^<terminalCommand serialNumber="\d+4025" commandID="\d+">[\W]+?<timestamp>.*</timestamp>[\W]+?<terminalState id="\d+">CRADLED</terminalState>' in 'C:\temp\test.log\test.log.12' (5/23/2014 10:46:44 AM; 5/23/2014 3:32:38 PM):
C:\temp\test.log\test.log.12(10410): <terminalCommand serialNumber="201154025" commandID="94">
Found '^<terminalCommand serialNumber="\d+4025" commandID="\d+">[\W]+?<timestamp>.*</timestamp>[\W]+?<terminalState id="\d+">CRADLED</terminalState>' 1 time(s).
Code: Select all
<terminalCommand serialNumber="201154025" commandID="94">
<timestamp>2014-05-23 06:45:48 GMT-04:00</timestamp>
<terminalState id="1">CRADLED</terminalState>
Is there a way that I can have Find in Files produce the entire match without truncating the match at the newline character?
Thank you in advance!