Path: csiph.com!eternal-september.org!feeder.eternal-september.org!mx02.eternal-september.org!.POSTED!not-for-mail From: Ben Bacarisse Newsgroups: comp.lang.php Subject: Re: Any recommendations on using PHP to parse marked-up text? Date: Fri, 19 Feb 2016 14:02:32 +0000 Organization: A noiseless patient Spider Lines: 30 Message-ID: <87wpq04x3b.fsf@bsb.me.uk> References: <87twl66p9h.fsf@bsb.me.uk> <3816086.GMaWPedH5Q@PointedEars.de> <87bn7d7kvl.fsf@bsb.me.uk> <1615449.BjJPyqVnO6@PointedEars.de> <87lh6h5wlb.fsf@bsb.me.uk> <2353152.leaMV68clc@PointedEars.de> <874md46h6a.fsf@bsb.me.uk> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: mx02.eternal-september.org; posting-host="017616aa25f81ec581c44d76d61ba2f3"; logging-data="23038"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+MbHJqpwK/i/eAVKv3HZgXP46Caq4wExY=" Cancel-Lock: sha1:qVXL6G1qwrTDi6LprQD/+RwwZtw= sha1:MeDjrcE/SsC4w9jd+dKYy+O6SZE= X-BSB-Auth: 1.3289058c4117986db752.20160219140232GMT.87wpq04x3b.fsf@bsb.me.uk Xref: csiph.com comp.lang.php:16525 "Christoph M. Becker" writes: > Ben Bacarisse wrote: > >> Unless you are prepared to actually say what you mean we have to leave >> it at that. I read the page, I searched for psf 10.1, and I still have >> no idea what you want to say. > > Googling for "psf 10.1" brought the desired information: > > Oh! That did not show up in my search engine. Why on Earth would he not just cite that link -- he complains enough about other people not citing things properly? So the "psf 10.1" was just to show me that he has listed and numbered things he often says? Blimey. That's... well... it's very Usenet. > Anyhow, what Thomas most likely wanted to convey is that > preg_replace_callback() is not general enough to process all markup > languages. Seems unlikely. Since his reference was to a theoretical article, the answer would be equally theoretical, and there is no more powerful model than even the simplest recogniser linked with a callback to a Turing complete language. Anyway, there are lots of things he might have meant. I wonder if he'll ever say? -- Ben.