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))]
- 21/11/25
- 11/20/2025
- 11/19/2025
- 11/18/2025
- 11/17/2025
- 11/16/2025
- 11/15/2025
- 11/14/2025
- 11/13/2025
- 11/12/2025
- 11/11/2025