Author: mm8 | Posted on: 12/23/2008 7:22:32 AM | Views : 245

I want to replace all '<' which is not a part of a certain tag with regular expressions in java...When I have the following text: "<INS>this....</INS><INS>...<b>....</INS>" and use the reg.exp. below I get this result:

"<INS>this....</INS><INS>...&lt;>....</INS>" but I want: "<INS>this....</INS><INS>...&lt;b>....</INS>"

Why is the "b" also replaced and how to fix?
var ltexp = new RegExp("<[^('INS '|'/INS')]");
Go to the complete details ...