好吧..我得到了一个ArrayList
......
如何为“标记”获得“描述”值的单词做些什么?费:
Criteria = car
matches founded... 2
Old Description value = My carbohidrates, .... is a team, i wanna go to park in the car
New Description value = My <font color='red'>car</font>bohidrates, .... is a team, i wanna go to park in the <font color='red'>Car</font>
该问题可以通过以下方式解决:
descriptionValue.replace(criteria, "<font color='red'>"+criteria+"</font>");
当我的标准有大写或小写组合时,我的问题就开始了...... fe:
Car, cAr, CaR....etc...
任何人都可以帮助我吗?