NYCPHP Meetup

[nycphp-talk] Wiki Style Links

Kenneth Downs ken at secdat.com
Wed Mar 5 10:39:54 EST 2008


Donald J Organ IV wrote:
> I was wondering if anyone else has done this and if they have the code 
> readily available.
> I want to be able to parse wiki style links such as
>
> [[page|title]]
> [[page]]
>
> Any suggestions ??
> _______________________________________________
> New York PHP Community Talk Mailing List
> http://lists.nyphp.org/mailman/listinfo/talk
>
> NYPHPCon 2006 Presentations Online
> http://www.nyphpcon.com
>
> Show Your Participation in New York PHP
> http://www.nyphp.org/show_participation.php

One thing I try is to explode on "|", then I count the results.  Two 
results means a page/title split, one result means only the page.

-- 
Kenneth Downs
Secure Data Software, Inc.
www.secdat.com    www.andromeda-project.org
631-689-7200   Fax: 631-689-0527
cell: 631-379-0010




More information about the talk mailing list