| View previous topic :: View next topic |
| Author |
Message |
Instructor Site Admin
Joined: 06 Jul 2006 Posts: 4680
|
Posted: Fri Mar 22, 2013 8:22 am Post subject: |
|
|
| KDJ wrote: | | Text (at the end is new line char)... | Test version
It should be:
Probably you mixed "Find next" and "Replace all" behavour of "\a.". When you press "Find next" first time, first "b" is selected - search range was from first symbol to last. When you press "Find next" second time, second "b" is selected - search range was from second symbol to last. |
|
| Back to top |
|
 |
KDJ
Joined: 06 Mar 2010 Posts: 1081 Location: Poland
|
Posted: Fri Mar 22, 2013 2:46 pm Post subject: |
|
|
Instructor
Test version is OK, thank you very much.
| Quote: | | Probably you mixed "Find next" and "Replace all" behavour of "\a.". When you press "Find next" first time, first "b" is selected - search range was from first symbol to last. When you press "Find next" second time, second "b" is selected - search range was from second symbol to last. |
Yes, I compared "Replace" function with "Replace all".
In the case of "Replace", the search range is variable. If you press "Replace" button 8 times, the result is:
In the case of "Replace all", the search range is constant (only one). And the result is (Count of changes = 2):
I wonder what the value should return the function "Count all occurrences". 8 or 2? |
|
| Back to top |
|
 |
KDJ
Joined: 06 Mar 2010 Posts: 1081 Location: Poland
|
Posted: Sun Mar 24, 2013 2:33 pm Post subject: |
|
|
Instructor
In "Find/Replace" dialog with regular expressions the following expression generates "Syntax error":
ab+c+|d
In the previous version it works well. |
|
| Back to top |
|
 |
KDJ
Joined: 06 Mar 2010 Posts: 1081 Location: Poland
|
Posted: Mon Mar 25, 2013 6:56 pm Post subject: |
|
|
Still about regular expressions.
Find:
(^a$a*)+ - works, no syntax error
(^a*$a*)+ - AkelPad hung
Replace:
Text: any
What: .*
With: A\0Z
---
Direction: Begining
"Replace all" result:
AanyZAZ
"Replace" 1 result:
AZany
"Replace" 2 result:
AAZanyZ
Search finished.
---
Direction: In selection
Selected text: any
"Replace all" result:
AanyZAZ
"Replace" 1 result:
AanyZ
"Replace" 2 result:
AanAyZZ
"Replace" 3 result:
AanAyAZZZ
"Replace" 4 result:
AanAyAZAZZZ
"Replace" 5 result:
AanAyAZAZAZZZ
and so on ...
---
Direction: In selection
No selection.
Caret position - after "any".
"Replace all" result:
any
Count of chages: 0
"Replace" 1 result:
anyAZ
"Replace" 2 result:
anyAAZZ
"Replace" 3 result:
anyAAAZZZ
...
|
|
| Back to top |
|
 |
KDJ
Joined: 06 Mar 2010 Posts: 1081 Location: Poland
|
Posted: Tue Mar 26, 2013 8:54 pm Post subject: |
|
|
Dialog "Settings", tab "Registry".
After pressing "Clear" button, does not work the keyboard (lost focus). |
|
| Back to top |
|
 |
Instructor Site Admin
Joined: 06 Jul 2006 Posts: 4680
|
Posted: Fri Mar 29, 2013 2:05 pm Post subject: |
|
|
| KDJ wrote: | | (^a*$a*)+ - AkelPad hung |
| KDJ wrote: | Text: any
What: .*
With: A\0Z |
| KDJ wrote: | | Dialog "Settings", tab "Registry". | Test version |
|
| Back to top |
|
 |
KDJ
Joined: 06 Mar 2010 Posts: 1081 Location: Poland
|
Posted: Fri Mar 29, 2013 6:39 pm Post subject: |
|
|
Instructor
Everything works fine except:
(^a*$a*)+
Text for test:
AkelPad will be hanged. |
|
| Back to top |
|
 |
Instructor Site Admin
Joined: 06 Jul 2006 Posts: 4680
|
Posted: Sat Mar 30, 2013 3:45 am Post subject: |
|
|
KDJ
Test version |
|
| Back to top |
|
 |
KDJ
Joined: 06 Mar 2010 Posts: 1081 Location: Poland
|
Posted: Sat Mar 30, 2013 1:31 pm Post subject: |
|
|
| Thanks Instructor, now is OK. |
|
| Back to top |
|
 |
pureocean
Joined: 31 Mar 2013 Posts: 2
|
Posted: Sun Mar 31, 2013 4:52 am Post subject: |
|
|
Firstly, Thanks you so much for AkelPad's development. Simple but wonderful and useful features utility. I always use every day! Thank you all for your efforts
It's a bug? I don't sure. I just wanted to let you know:
In last SVN builds, MPC-HC's last version settings file (INI) text format is changed. AkelPad can't display properly. Example file: http://ge.tt/api/1/files/3ZQfhcc/0/blob?download
P.S.: I got used to see original Notepad's Blue Icon. I always change "Icon Group" of every AkelPad's new version with original Notepad.exe's "Icon Group". It's easily with ResourceHacker. Of course, it's personal preference.  |
|
| Back to top |
|
 |
KDJ
Joined: 06 Mar 2010 Posts: 1081 Location: Poland
|
Posted: Sun Mar 31, 2013 11:29 am Post subject: |
|
|
pureocean
It is no a bug.
Your file mpc-hc.ini is encoded in UTF-8.
Probably, the previous version of the file was encoded in UTF-16LE.
The code page used to decode the file is displayed in the status bar.
If you have selected the option "Options"->"Settings"->"Registry"->"Remember code page", AkelPad remember the code page for recently opened files.
Uncheck this option and then the file should be displayed correctly.
Another solution:
Open mpc-hc.ini in AkelPad, press F12 (or right click on code page section in status bar) and run from context menu "Redetect". |
|
| Back to top |
|
 |
pureocean
Joined: 31 Mar 2013 Posts: 2
|
Posted: Mon Apr 01, 2013 3:55 am Post subject: |
|
|
KDJ, Thank you for the reply and tips.
Before one minute, I've read your message. And clicked to AkelPad. Strange: AkelPad just now can open properly. I was very suprised. No need to apply your suggestions. Still thanks for tips because it will be taught a lesson.
Best regards! |
|
| Back to top |
|
 |
KDJ
Joined: 06 Mar 2010 Posts: 1081 Location: Poland
|
Posted: Fri May 24, 2013 5:38 pm Post subject: |
|
|
Don't work single replace with regular expressions:
Text: abxaby
What: (?<=a)b
With: c |
|
| Back to top |
|
 |
Instructor Site Admin
Joined: 06 Jul 2006 Posts: 4680
|
Posted: Sun Jun 09, 2013 3:59 am Post subject: |
|
|
KDJ
Regular expressions still seaching from begin to end, so (?<=a) must be in the search range. |
|
| Back to top |
|
 |
TheDutchJewel
Joined: 03 Jan 2011 Posts: 9
|
Posted: Tue Jun 11, 2013 3:00 pm Post subject: Caret bug in v4.8.4 |
|
|
After updating to v4.8.4 the caret does only appear in new created files, not is saved/reopened ones.
Tested with x86 & x64 version. |
|
| Back to top |
|
 |
|