I have downloaded UltraEdit, and I am assessing it for possible use. I was wondering whether it is possible to search across line breaks, i.e. a block of code.
Sincerely,
Joe
Sincerely,
Joe
Code: Select all
KEY1[?^p^b^r^n]++KEY2
Code: Select all
^(KEY1[?^p^b^r^n]++^)KEY2
Code: Select all
^1KEY3
Code: Select all
KEY1[.\p]*KEY2
Code: Select all
function blah (
int a=1;
a++;
......
)
Sorry, but no, that didn't help. I have to do a s&r on a folder structure containing thousands of files.mrainey56 wrote:Maybe you can get an idea here that will help:
General thread: How do I replace multiple lines
Code: Select all
[?^p]++
Code: Select all
string1
any
number
of
lines
string2
Code: Select all
(string1)(.*\p*)(string2)
Code: Select all
string1
string2
Code: Select all
<head><meta name="Schluessel" content="PK-V0000-T4444-D0000-N0000-G310805-A0000-X0000-B00000002">
<meta http-equiv="Pragma" content="no-cache">
<meta http-equiv="expires" content="1800">
<meta name="Date" content="01.09.2001">
<title>pin8</title>
</head>
I agree. I tried to explicit define the strings as part of a line withthierrybo wrote:Ok, I understand why. This is because in my case, pattern (string1) and pattern (string2) are the exact content of a full line, not a part of line as in your case.
Edit: This is a potential bug in UE because I tested your case in Visual Regexp 3.0 and it works (http://laurent.riesterer.free.fr/regexp/).
Code: Select all
(.*string1)(.*\p*)(string2.*) or (.*string1.*)(.*\p*)(.*string2.*)
Code: Select all
<head><meta name="Schluessel">
<head><meta name="Schluessel" content="PK-V0000-T4444-D0000-N0000-G310805-A0000-X0000-B00000002">
Code: Select all
<head><meta name="Sc****>
<head><meta name="Sc**** content="PK-V0000-T4444-D0000-N0000-G310805-A0000-X0000-B00000002">
Code: Select all
****>
**** content="PK-V0000-T4444-D0000-N0000-G310805-A0000-X0000-B00000002">