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))]
- 01/04/26
- 03/31/2026
- 03/30/2026
- 03/29/2026
- 03/28/2026
- 03/27/2026
- 03/26/2026
- 03/25/2026
- 03/24/2026
- 03/23/2026
- 03/22/2026