I am trying to grab the contents of the response text i.e. the date. However, if it is anything else other than a date, it should not grab the content. Can someone help me here please.. My current regex is : 'Renewal/Expiration Date:[^\d]([\d/])'
<div class="textbkStyle">Renewal/Expiration Date:
<div class="responseText">
01/01/2019
</div>
</div>
The problem being if the xml looks like this
<div class="textbkStyle">Renewal/Expiration Date:
<div class="responseText">
NOT AVAILABLE
</div>
</div>
It goes and skips the NOT AVAILABLE text and grabs another consecutive date in the page which matches the format. Also suggestions for resources to get better at regex are also appreciated.