<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>RegEx on Remko's Blog</title><link>https://remkoweijnen.nl/blog/tags/regex/</link><description>Recent content in RegEx on Remko's Blog</description><generator>Hugo</generator><language>en-us</language><lastBuildDate>Tue, 06 Mar 2012 11:19:53 +0000</lastBuildDate><atom:link href="https://remkoweijnen.nl/blog/tags/regex/index.xml" rel="self" type="application/rss+xml"/><item><title>PowerShell RegEx Fun</title><link>https://remkoweijnen.nl/blog/2012/03/06/powershell-regex-fun/</link><pubDate>Tue, 06 Mar 2012 11:19:53 +0000</pubDate><guid>https://remkoweijnen.nl/blog/2012/03/06/powershell-regex-fun/</guid><description>&lt;p&gt;I am writing a script that is going to automate a number of manual steps involved in creating a new image with Citrix PVS.&lt;/p&gt; &lt;p&gt;First step is to copy the most recent base image which is kept in a folder structure. The folder name is always YYYY-MM-DD (description): &lt;/p&gt; &lt;p&gt;&lt;a href="https://remkoweijnen.nl/blog/wp-content/uploads/2012/03/image1.webp" class="glightbox" data-type="image" data-gallery="post-2493"&gt;&lt;img loading="lazy" decoding="async" style="display: inline" title="image" alt="image" src="https://remkoweijnen.nl/blog/wp-content/uploads/2012/03/image_thumb1.webp" width="252" height="71" /&gt;&lt;/a&gt;&lt;/p&gt; &lt;p&gt;I needed to determine the most recent folder and didn't want to rely on creation date. Instead I walk the directory tree and filter the date out of the filename with a regular expression:&lt;/p&gt;</description></item></channel></rss>