In this video will see how to take CSS Selector/Xpath using regular expression in Selenium. We need to take regular expression when attribute values are so long or partially change every time. In that case we need to do unique partial match for values with the help of regular expressions.
Xpath = //h1[contains(@class,'entry')]
CSS Selector = h1[class*='entry']