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))]
- 12/06/26
- 06/11/2026
- 06/10/2026
- 06/09/2026
- 06/08/2026
- 06/07/2026
- 06/06/2026
- 06/05/2026
- 06/04/2026
- 06/03/2026
- 06/02/2026