AkelPad Forum Index AkelPad
Support forum
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Regular expression find not finding 08h in [\x00-\x09]

 
Post new topic   Reply to topic    AkelPad Forum Index -> Discussion (English)
View previous topic :: View next topic  
Author Message
rd83667



Joined: 10 Nov 2012
Posts: 4

PostPosted: Sat Nov 10, 2012 6:40 pm    Post subject: Regular expression find not finding 08h in [\x00-\x09] Reply with quote

Searching for a Notepad replacement led me to AkelPad 4.7.9.

Seeing that it has regular expressions, I tried one from a current project.

The range [\x00-\x09] didn't find a 08h in the text, while a standalone \x08 did.

Why?
Back to top
View user's profile Send private message
rd83667



Joined: 10 Nov 2012
Posts: 4

PostPosted: Sat Nov 10, 2012 10:21 pm    Post subject: Reply with quote

Also, other testing finds that while the $ anchor works for the end of line, I can't get the ^ anchor to work for the beginning of the line.
Back to top
View user's profile Send private message
Surveyor



Joined: 08 Feb 2008
Posts: 146
Location: British Columbia, Canada

PostPosted: Sun Nov 11, 2012 4:20 am    Post subject: Reply with quote

rd83667 - Welcome to the forums; glad you have tried AkelPad!

Regular expressions have some standardization, but unfortunately, are often (at leart partially) implementation specific. Since you are new to the forum and AkelPad, you may not yet have discovered the User's Manual (i.e. Documentation) - I have an appendix on regular expressions, as implemented in AkelPad. Have a look there, re: your issue and I will have a look at it later also.

I am in love with AkelPad and its features and use it every day, although I don't consider myself a power user. You may also note that the (sometimes heavy) activity on the forum - especially for the Scripts plugin - indicates an active project.

- Surveyor (author of the manual, not the application)
Back to top
View user's profile Send private message Send e-mail
rd83667



Joined: 10 Nov 2012
Posts: 4

PostPosted: Sun Nov 11, 2012 12:28 pm    Post subject: Reply with quote

It was reading that manual, which I downloaded with the executable, that led me to try the regular expressions.

My testing found that AkelPad did not behave as the manual said it should, for expressions that I have used in another text editor and grep.
Back to top
View user's profile Send private message
DV



Joined: 16 Nov 2006
Posts: 807
Location: Kyiv, Ukraine

PostPosted: Sun Nov 11, 2012 1:53 pm    Post subject: Reply with quote

rd83667,
seems you have found a bug that needs to be fixed.
Regular expressions were presented in AkelPad just few minor versions ago (officially in 4.7.4), so currently there can be some issues with their implementation. Anyway, regular expressions are much better in currently developed AkelPad 4.8.0 which latest developer's snapshot can be found at http://akelpad.sourceforge.net/files/AkelPad.zip
Additionally you can report to the "Bug reports" topic which is monitored by Instructor (the developer) regularly.
Back to top
View user's profile Send private message
rd83667



Joined: 10 Nov 2012
Posts: 4

PostPosted: Sun Nov 11, 2012 2:22 pm    Post subject: Reply with quote

Yes, version 4.8.0 successfully did the two examples I tried.
Back to top
View user's profile Send private message
FeyFre



Joined: 07 Aug 2007
Posts: 2004
Location: Vinnitsa, Ukraine

PostPosted: Sun Nov 11, 2012 2:37 pm    Post subject: Reply with quote

> I can't get the ^ anchor to work for the beginning of the line.
Yes, it is known bug of 4.7.9
Back to top
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    AkelPad Forum Index -> Discussion (English) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


SourceForge.net Logo Powered by phpBB © 2001, 2005 phpBB Group