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))]
- 10/10/25
- 10/09/2025
- 10/08/2025
- 10/07/2025
- 10/06/2025
- 10/05/2025
- 10/04/2025
- 10/03/2025
- 10/02/2025
- 10/01/2025
- 09/30/2025