Replacing issue
Moderators: AmigoJack, bbadmin, helios, MudGuard
-
laqa
- Posts: 5
- Joined: Wed Nov 26, 2008 6:05 pm
Replacing issue
Hi, I am trying to replace some text and Textpad cannot find although it is a short and simple file. I pasted the file below and i cannot find the first characters, ox. When I was copying the file, it found the string, but now when I choose Replace, nothing happens. no dialog box.
Thanks,
Luis.
ox,oy,0
@0,@ht
@dav,@0
@0,@hv
@dv,@0
@0,@-hv
@bo,@0
@0,@-hs
@-A12,@0
@0,@-A13
@hc,@-hc
@A14,@0
@hc,@hc
@0,@A15
@-A16,@0
@0,@hs
@-bo,@hv
@-dv,@0
@0,@-hv
@A17,@0
@0,@-ht
c
Thanks,
Luis.
ox,oy,0
@0,@ht
@dav,@0
@0,@hv
@dv,@0
@0,@-hv
@bo,@0
@0,@-hs
@-A12,@0
@0,@-A13
@hc,@-hc
@A14,@0
@hc,@hc
@0,@A15
@-A16,@0
@0,@hs
@-bo,@hv
@-dv,@0
@0,@-hv
@A17,@0
@0,@-ht
c
-
ben_josephs
- Posts: 2464
- Joined: Sun Mar 02, 2003 9:22 pm
-
laqa
- Posts: 5
- Joined: Wed Nov 26, 2008 6:05 pm
I was using the Replace option from Search menu, sometimes search works and sometimes not. I captured a screen, you can email me at laqa@ufrj.br for it.
Thanks,
Luis. [/img]
Thanks,
Luis. [/img]
-
ben_josephs
- Posts: 2464
- Joined: Sun Mar 02, 2003 9:22 pm
-
ben_josephs
- Posts: 2464
- Joined: Sun Mar 02, 2003 9:22 pm
-
laqa
- Posts: 5
- Joined: Wed Nov 26, 2008 6:05 pm
The full description is that when I choose Replace from menu, Textpad opens a dialog box it cannot find the string even when I copy the string from text. And this does not happen always, just some times. With the cursor at the same place. I search with defaults, Text, Match case and Acive document. What else you need?
-
ben_josephs
- Posts: 2464
- Joined: Sun Mar 02, 2003 9:22 pm
-
laqa
- Posts: 5
- Joined: Wed Nov 26, 2008 6:05 pm
-
ben_josephs
- Posts: 2464
- Joined: Sun Mar 02, 2003 9:22 pm
- Bob Hansen
- Posts: 1516
- Joined: Sun Mar 02, 2003 8:15 pm
- Location: Salem, NH
- Contact:
Since your explanation is still not clear, I tried a few tests.
I have done some Search and Replace tests on the sample test you provided.
Test1:
Search for: ox
Replace with: abc
Test2:
Search for @0
Replace with: abc
These work with no trouble, the "abc" replaced the "ox" and the "@0" in all instances.
I have Regular Expressions checked, looking for Text, not matching Case.
I am also using POSIX syntax.
Using TextPad 4.7.3, on , XP PRO-SP2
==========================================
laqa, please provide specifics here that look something like the examples above. There is plenty of help available, but we need to know exactly what you are using for Search and Replace strings, and the associated settings. And no one wants to leave this forum to go look at things on another site. It is a courtesy to provide that information to the users who are willing to give up their time for free to help you out.
Also note the position of your cursor when you do a Search/Replace. Find Next will proceed from the cursor location to the next line, unless you select Replace All. It is a good habit to press CTL-HOME to move the cursor to the top of the document before you do your Search/Replace process if you want to replace all instances.
I have done some Search and Replace tests on the sample test you provided.
Test1:
Search for: ox
Replace with: abc
Test2:
Search for @0
Replace with: abc
These work with no trouble, the "abc" replaced the "ox" and the "@0" in all instances.
I have Regular Expressions checked, looking for Text, not matching Case.
I am also using POSIX syntax.
Using TextPad 4.7.3, on , XP PRO-SP2
==========================================
laqa, please provide specifics here that look something like the examples above. There is plenty of help available, but we need to know exactly what you are using for Search and Replace strings, and the associated settings. And no one wants to leave this forum to go look at things on another site. It is a courtesy to provide that information to the users who are willing to give up their time for free to help you out.
Also note the position of your cursor when you do a Search/Replace. Find Next will proceed from the cursor location to the next line, unless you select Replace All. It is a good habit to press CTL-HOME to move the cursor to the top of the document before you do your Search/Replace process if you want to replace all instances.
Hope this was helpful.............good luck,
Bob
Bob