我必須從 list 中刪除 1.1 [test, 1.1 test1, test, tsest]。我嘗試了以下代碼但它不起作用List<String> li = new ArrayList<>(); for(WebElement el : element) { String str = el.getText(); if(str.contains("0-9")) { String intValue = str.replace("[0-9]", " "); li.add(intValue); }else { li.add(str); }
添加回答
舉報
0/150
提交
取消