Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: _ck_ Can you help me with some of your regular expression code?

@benzilla069

Member

Well I just want it to detect when [wiki]pagename[/wiki] is used so I can run a bit of code(I’m currently modifying your wikipost script to be more of a wiki system.) I want it to create a new post and link to that post.

Looking at the code again I’m starting to wrap my head around what’s going on.

$simple = array('b' => 'strong',); // cut and copied example

Turns all instances of into the html equivalent <center></center> but I just want it to recognise all instances of [wiki]wikipagename[/wiki] and then allow me to run code. I’ve been tinkering with the code most of the day but most of the time it seems to want to run the code I’ve written for all the posts and not just one 😡

Skip to toolbar