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.