Hi,
I am using 4.3.2 version of Textpad, and when I am using the tagged regular expressions on the find, I get a message that it is invalid regular expression.
This is the expression I use (same as the example in the help files)
\(tu\) \1
I tried the posix regular expression and the default (unchecked posix regular expressions) with the same message. Am I not supposed to do the tagged find? Can I only do tagged replace?
Do let me know what I am doing wrong.
Kini
Find string same as orginal tagged expression
Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard
RE: Find string same as orginal tagged expression
This is continuation of former query. I installed the 4.4 version, and unchecked the Posix expression i.e. using default regular expresions (for Unix I guess), and found that the \(tu\) \1 expression is working. The reason I had tried the \(tu\) \1 expression was that I was trying to see if the same expression comes in two lines. This is the expression I was trying:
\([a-zA-Z0-9_]+\) .*\n \1
Which I had hoped would find the expressions of the type
whatsap buddy
whatsap something else
It still gives me the invalid regular expression message.
Kini
\([a-zA-Z0-9_]+\) .*\n \1
Which I had hoped would find the expressions of the type
whatsap buddy
whatsap something else
It still gives me the invalid regular expression message.
Kini
RE: Find string same as orginal tagged expression
I tried to reproduce your error. I succeeded ;-(
If you have a file like this:
abc de abc xyz
abc xyz
bcd
abc abc xyz
abc
fgh
and a regular expression of
\(abc\).*\1
it finds
in first line "abc de abc" and in fourth line "abc abc" which is correct.
If I use a regular expression of
\(abc\).*\n\1
(i.e. I added the newline)
I get an "Invalid regular expression" error.
Btw, I noted if I try to use backspace while this error box is open, instead of deleting the character before the cursor I get little boxes inserted into the text.
Andreas
If you have a file like this:
abc de abc xyz
abc xyz
bcd
abc abc xyz
abc
fgh
and a regular expression of
\(abc\).*\1
it finds
in first line "abc de abc" and in fourth line "abc abc" which is correct.
If I use a regular expression of
\(abc\).*\n\1
(i.e. I added the newline)
I get an "Invalid regular expression" error.
Btw, I noted if I try to use backspace while this error box is open, instead of deleting the character before the cursor I get little boxes inserted into the text.
Andreas
RE: Find string same as orginal tagged expression
Here is a thread related to this problem.
http://www.textpad.com/forum/read.php?f=1&i=482&t=428
Regular expressions are not optimized for multi-line finding/replacing. The TextPad help documentation is not clear on this.
http://www.textpad.com/forum/read.php?f=1&i=482&t=428
Regular expressions are not optimized for multi-line finding/replacing. The TextPad help documentation is not clear on this.