Thread:Project:Support desk/ How to use within parser function?/reply (2)

Thanks for your reply, Bawolff.

I want the references to be added automatically if there's at least one ref tag within the wikitext.

Is there a PHP function with which I can check whether the wikitext contains a certain string (in my case "<ref") ?

If yes I could a write a small custom extension to solve my problem.

Thanks!