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