Can anyone help me with the code to replace words within [] so that things like [[word1|word2|word3|word4]] would become word1.
Africa, particularly central [[eastern Africa|Africa]], is widely regarded within the [[scientific community]] to be the origin of [[human]]s and the [[Hominidae]] [[clade]] ([[great ape]]s)
Africa, particularly central eastern Africa, is widely regarded within the scientific community to be the origin of humans and the Hominidae clade (great apes)
I also need to do this with preg_replace, so my understanding is a little rough and converting it to that format would be greatly appreciated.
View Complete Post