Subj : PCRE in Synchronet? To : Digital Man From : Angus Mcleod Date : Fri Dec 17 2004 07:22 pm Re: PCRE in Synchronet? By: Digital Man to Angus Mcleod on Fri Dec 17 2004 14:10:00 > > Quick question: Can SBBS do Perl-compatible Regular Expressions? > > Not currently. Pity. > I don't see a function in the SpiderMonkey API to handle regexp's natively. > does contain private functions to handle regexp's (see include/mozilla/js/ > jsregexp.h), but it's very JS-centric (deals with JS contexts and strings an > such). I thought that would probably be the case. :-/ > For full PCRE support, a 3rd party cross-platform RE library would need to b > utilized or figure out someway to use the spidermonkey RE code (assuming you > don't want to create one from scratch). No, I wouldn't fancy doing one from scratch! :-) There's always PCRE (http://sourceforge.net/projects/pcre/) for which there is a windows port (http://gnuwin32.sourceforge.net/packages/pcre.htm) but who knows how well it works? I was hoping that a suitable library had already been included in the SBBS code-base. I don't much fancy sticking an entire library in there to do a silly proggy or two! --- þ Synchronet þ Great programs on the Synchronet Channel at The ANJO BBS .