I have to remove 1.1 from list [test, 1.1 test1, test, tsest]. I have tries the following code but its not working
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);
}