Regex \xhh problem

64 views
Skip to first unread message

zetah

unread,
Sep 26, 2012, 8:46:15 AM9/26/12
to scite-i...@googlegroups.com

Considering: http://www.scintilla.org/SciTERegEx.html

I can't see why this doesn't work:

Philippe Lhoste

unread,
Sep 26, 2012, 9:05:49 AM9/26/12
to scite-i...@googlegroups.com
On 26/09/2012 14:46, zetah wrote:
> Considering: http://www.scintilla.org/SciTERegEx.html
>
> I can't see why this doesn't work:
>
> <https://lh3.googleusercontent.com/-C6L--q2xx-4/UGL43VMXtaI/AAAAAAAAAGw/iQrBZzeiFsw/s1600/Clipbrd1.png>

Looks like a signed char issue, as it works for \x01, for example.
If you activate (also) the \r\n option (transform escapes), it will work...

--
Philippe Lhoste
-- (near) Paris -- France
-- http://Phi.Lho.free.fr
-- -- -- -- -- -- -- -- -- -- -- -- -- --

zetah

unread,
Sep 26, 2012, 9:33:42 AM9/26/12
to scite-i...@googlegroups.com
On Wednesday, September 26, 2012 3:06:12 PM UTC+2, PhiLho wrote:
If you activate (also) the \r\n option (transform escapes), it will work...

Seems so. Backslash expressions handle this while regex not
Thanks for the tip

Neil Hodgson

unread,
Sep 26, 2012, 7:53:22 PM9/26/12
to scite-i...@googlegroups.com
Philippe Lhoste:

> Looks like a signed char issue, as it works for \x01, for example.
> If you activate (also) the \r\n option (transform escapes), it will work…

Looks like it needs an <unsigned char> cast for the ci.CharAt expression inside the CHR case in RESearch::Execute to match the type of 'c'.

Neil

Neil Hodgson

unread,
Oct 4, 2012, 2:09:06 AM10/4/12
to scite-i...@googlegroups.com
Me:

> Looks like it needs an <unsigned char> cast for the ci.CharAt expression inside the CHR case in RESearch::Execute to match the type of 'c'.

Committed fix.

Neil

Reply all
Reply to author
Forward
0 new messages