<div dir="ltr">Hi mentors,<br><div>Following up on my previous email: <a href="https://mail.kde.org/pipermail/kde-finance-apps/2020-June/000851.html">https://mail.kde.org/pipermail/kde-finance-apps/2020-June/000851.html</a> I have an idea to get the date for the valid_upto field.</div><div>Currently, the src/bankdata/CMakeLists.txt file contains the code to download the webpage <a href="https://www.bundesbank.de/de/aufgaben/unbarer-zahlungsverkehr/serviceangebot/bankleitzahlen/download-bankleitzahlen-602592">https://www.bundesbank.de/de/aufgaben/unbarer-zahlungsverkehr/serviceangebot/bankleitzahlen/download-bankleitzahlen-602592</a> (at lines 6-12) and uses a regex to search for 'blz-aktuell-txt-data.txt' to scrape the link of the file. Now, this <a> tag has the label which contains the date up to which the deletions were valid. We can scrape this date from this label using another regex and save this date as a suffix for the name of the file downloaded. This could then later be used to update the valid_upto column.</div><div>Does this approach seem good enough? <br></div><div><br></div><div>I think REGEX MATCH should be used here as the first occurrence of "Bankleitzahlendateien - gültig vom" has the required date. </div><div><br></div><div>I am currently having a problem in working out the regex. Generally, to match a pattern after a string using regex, we use parentheses. But it is not working with CMake regex. Can anyone help me here?</div><div>The line I have added looks like this: </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">   string(REGEX MATCH \"Bankleitzahlendateien - gültig vom ([^ ]*)\" FILE_DATE  \"\${DATA}\")</blockquote><div> </div><div>The FILE_DATE then contains "Bankleitzahlendateien - gültig vom 09.03.2020" while I want only the pattern inside parentheses. </div><div>I want to fetch the first date after "Bankleitzahlendateien - gültig vom " string. </div><div>Also, how to make CMake regex non-greedy?</div><div>I looked up online but did not find any helpful resource.</div><div><br></div><div>I would appreciate some help as I am stuck here and the rest of my week's work requires the database.</div><div><br></div><div>Thanks.</div><div>Prasun</div></div>