.. |ne| replace:: a |ne| bc

.. |ab| replace:: ab |cd|
.. |cd| replace:: |ab| cd
.. |ef| replace:: |ab| ef

Use of recursive definitions |ne|, |ab|, |cd|, and |ef|.