Hi dark,
I was playing with this, and pretty much was able to get it working. I don't know the desired effect, but I was able to get some substiutions.
I see a few problems here.
You need to escape your bracket characters in the reg-ex expression. If not, then the function will see this as a group of characters, and will substitute each time it see an "L", "I", "N", or "K". Since the brackets are part of the string, you must use "[" and "]" accordingly. You could probably use the quotemeta function to do this as well, if you don't want to escape the all the characters by hand.
Bigger problem... You have a variable "$part" that is returning the result. But look what is happening here. You are replacing $part EACH time you call the succeeding eregi function. I believe you're going to have to pass $part as the string, like this:
$part = eregi_replace(arg1, arg2, $text);
$part = eregi_replace(arg1, arg2, $part);
$part = eregi_replace(arg1, arg2, $part);
*edited to fix my mistake... there is no concat needed.
That should work for you.
d