How can I use textpad to replace the string:
AB
with the following string:
XAYBZ
where A, and B are two RE's and X, Y, Z are literal strings?
For example:
A: [a-z]*y
B: [a-z]*z
X: start
Y: middle
Z: finish
Replacing with Regular Expressions
Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard
-
N. Demos
Re: Replacing with Regular Expressions
A: [a-z]*y
B: [a-z]*z
X: start
Y: middle
Z: finish
Find String: \([a-z]*y\)\([a-z]*z\)
Replace String: start\1middle\2finish
More Generally (for the same situation above):
Find String: \(A\)\(B\)
Replace String: X\1Y\2Z
B: [a-z]*z
X: start
Y: middle
Z: finish
Find String: \([a-z]*y\)\([a-z]*z\)
Replace String: start\1middle\2finish
More Generally (for the same situation above):
Find String: \(A\)\(B\)
Replace String: X\1Y\2Z