Re: [Jprogramming] regex on binary string

2015-12-22 Thread Ryan Eckbo
Great, thanks! On 23 Dec 2015, at 14:29, Raul Miller wrote: > Two reasons. > > One is that by default regex assumes utf8 and a. is not utf8. To > disable that, you need to go: > rxutf8 0 > > The other is that the regex implementation we are using assumes C > strings, which are null terminated. S

Re: [Jprogramming] regex on binary string

2015-12-22 Thread Raul Miller
Two reasons. One is that by default regex assumes utf8 and a. is not utf8. To disable that, you need to go: rxutf8 0 The other is that the regex implementation we are using assumes C strings, which are null terminated. So you need to get rid of any nulls if you want regex to go past them.

[Jprogramming] regex on binary string

2015-12-22 Thread Ryan Eckbo
Why doesn't regex work on binary? e.g. load'regex' 'a' rxmatch a. _1 0 'a' rxmatch AlphaNum_j_ 26 1 -- For information about J forums see http://www.jsoftware.com/forums.htm