XPath: Does Not Match
Combining the matches() function with not() allows you to exclude elements whose content matches a specific regular expression pattern.
You can use the following XPath:
Example 1 : //ul[@class='list-group']/li[not(matches(.,'(\d{2}/\d{2}/\d{2})$',i))]
- 31/08/25
- 08/30/2025
- 08/29/2025
- 08/28/2025
- 08/27/2025
- 08/26/2025
- 08/25/2025
- 08/24/2025
- 08/23/2025
- 08/22/2025
- 08/21/2025