Chuckles’ Blog or Chog, or maybe Bluckles » regexp


Well i implemented the linking of categories and created a new plugin “Advanced Wiki Links”. Grab it if you want to take a look.

Well i’ve implemented a solution, basically i replace all href tags with a temp tag, process the article content then put the href tags back in.

Not the nicest solution but works for now until a better one comes along.

Next step is to auto link to tags as well as titles.

I tried to install the Wiki-Links plugin yesterday but found it wasn’t working with the latest WordPress (2.2.2). So i sat down today and fixed it. Dave also fixed it and better yet provided me with a regexp string to prevent it from placing links within HTML tags. I wanted something one better, I wanted it to ignore anything embedded in <a> tags so i sat down and put the regexp string together and what happens … this php bug (or as they state, perl’s).

So basically i need to sit down and see if i can get around it, but it will have to wait for another day, bed calls

Here’s the string if anyone wants to have a starting point “/(?<!<[a][a-z0-9]*[^<]*)$string/”

246b91c85d" />