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))]
- 27/06/26
- 06/26/2026
- 06/25/2026
- 06/24/2026
- 06/23/2026
- 06/22/2026
- 06/21/2026
- 06/20/2026
- 06/19/2026
- 06/18/2026
- 06/17/2026