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))]
- 26/07/25
- 07/25/2025
- 07/24/2025
- 07/23/2025
- 07/22/2025
- 07/21/2025
- 07/20/2025
- 07/19/2025
- 07/18/2025
- 07/17/2025
- 07/16/2025