A string outputs below result.
test179901034102 00:00:00:00:00:01 Open
test179901083723 00:00:00:00:00:01 Open
test179901153595 00:00:00:00:00:01 Open
test179901187836 00:00:00:00:00:01 Open
WebElement element = driver.findElement(By.xpath("//div[contains(@class,'filteredTable')]"));
System.out.println( element.getText()); // returns the above string
My intention is to get the values test179901034102 , test179901083723 etc as a list separately from the string.
How can i use regex to get the values(`test179901034102 , test179901083723) from the below string
test179901034102 00:00:00:00:00:01 Open
test179901083723 00:00:00:00:00:01 Open
test179901153595 00:00:00:00:00:01 Open
test179901187836 00:00:00:00:00:01 Open