I want to get all WebElement information having class name "act" or "dact"

I am using below line of code to get all class information for "act". Can any one help me to use OR condition in class name?

List<WebElement> nL2 = driver.findElements(By.className("act"));

Something similar to this; so that I don't have to write two separate line for each class.

//this is not working

List<WebElement> nL2 = driver.findElements(By.className("act | dact"));

Thanks!

Edit
Report