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))]
- 15/05/26
- 05/14/2026
- 05/13/2026
- 05/12/2026
- 05/11/2026
- 05/10/2026
- 05/09/2026
- 05/08/2026
- 05/07/2026
- 05/06/2026
- 05/05/2026