Need a regular expression. If I want to replace "abcdf" with "PPP" in
XabcdfX is xxxxxxx. <MabcdfM> has xxxxx. abcdf is xxxxxxx. <FabcdfF> zxabcdf abcdf.
then the expected output
XPPPX is xxxxxxx. <MabcdfM> has xxxxx. PPP is xxxxxxx. <FabcdfF> zxPPP PPP.
abcdf can be a whole string or even can be a substring. It will be only alphanumeric. It can only be replaced when it does not come between < >.
I need to do it using javascript replace method. Please help me.