Keyword replacement plugin
Posted: Thu Mar 31, 2005 4:45 am
Could someone tell me whether any of the existing plugins enable keyword replacement? For example I would like it when my post gets saved for a certain words to be matched and replaced with a hyperlink. Does any existing plugin enable this or if not is there any plugin that could be easily adapted to do this?
Getting really specific I'm imagining functionality along the these lines. If I was to have the string "[PHP]" in my post then the enclosed "PHP" would be matched in a regular expression and a look up would occur in an array of keywords. If the keyword is found then a replacement would occur so that "[PHP]" would be replaced with "<A href="http://www.php.net">PHP</a>".
Thanks
Getting really specific I'm imagining functionality along the these lines. If I was to have the string "[PHP]" in my post then the enclosed "PHP" would be matched in a regular expression and a look up would occur in an array of keywords. If the keyword is found then a replacement would occur so that "[PHP]" would be replaced with "<A href="http://www.php.net">PHP</a>".
Thanks