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))]
- 24/01/26
- 01/23/2026
- 01/22/2026
- 01/21/2026
- 01/20/2026
- 01/19/2026
- 01/18/2026
- 01/17/2026
- 01/16/2026
- 01/15/2026
- 01/14/2026