Yes, I have to set utf8 to 0 too. Apparently with utf8 set to 1, . doesn't match an invalid character (and invalid characters in the pattern may cause a crash).
Henry Rich > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of bill lam > Sent: Tuesday, December 26, 2006 11:43 AM > To: Programming forum > Subject: Re: [Jprogramming] Regex crashes in J6.01c > > Henry Rich wrote: > > crashes J6.01c (works fine in 6.01 late beta) > > It might be the utf8 option as mentioned in release highlight, try > load 'regex' > rxutf8 0 > 0 > stringhashtml =: (rxcomp '<[hH][tT][mM][lL]>[][:' , ((#~ > >:@('\'&=))(}. a.) -. > '][:-') , '-]*</[hH][tT][mM][lL]>')&(0&<:@:((<0 0)&{)@rxmatch) > > stringhashtml 'anything' > 0 > stringhashtml '<html>aaaa</html>' > 1 > > -- > regards, > bill > ---------------------------------------------------------------------- > For information about J forums see > http://www.jsoftware.com/forums.htm ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
