in reply to not able to replace the element in the middle of the string

Hello lakshmikant,

Here’s another hint: you may find the assertion \B useful. See perlrebackslash and “Assertions” under perlre#Regular-Expressions.

Hope that helps,

Athanasius <°(((><contra mundum Iustus alius egestas vitae, eros Piratica,