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))]
- 02/01/25
- 01/01/2025
- 12/31/2024
- 12/30/2024
- 12/29/2024
- 12/28/2024
- 12/27/2024
- 12/26/2024
- 12/25/2024
- 12/24/2024
- 12/23/2024