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))]
- 06/06/25
- 06/05/2025
- 06/04/2025
- 06/03/2025
- 06/02/2025
- 06/01/2025
- 05/31/2025
- 05/30/2025
- 05/29/2025
- 05/28/2025
- 05/27/2025