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))]
- 08/08/26
- 08/07/2026
- 08/06/2026
- 08/05/2026
- 08/04/2026
- 08/03/2026
- 08/02/2026
- 08/01/2026
- 07/31/2026
- 07/30/2026
- 07/29/2026