Hi Srinivas,
I’m not sure we can use regular expressions in replace function to define a boundary and replace them with a single char but if your requirement is to just delete the error code from the error message then this is my suggestion: Form a regular expression which would pattern match numberics(0-9) and ‘.’ which would start with [ISC and end with ‘]’ and and leave the replaceString empty. This would remove the error code.
BUT BEWARE that this would remove any other numbers and . in the whole message.
Another way you can do is to do a 3 step.
[INDENT]1. indexOf(“]”)
2. substring(0,index)
3. replace(substring,replaceString=“”)
[/INDENT]
Hope this helps.
-Suren
#webMethods#Integration-Server-and-ESB#Flow-and-Java-services