Raccolta di esempi di espressioni regolari (Regex)

<h3 class="uk-heading-bullet">Date (DD MM YYYY)</h3>

<div> <b>Find date (DD MM YYYY). Possible separators: ". / -"</b> <p>Example text: Received on 22.01.2020</p> <p>REGEX: <input readonly class="uk-input" type="text" value="(0[1-9]|[12][0-9]|3[01])(.|\/|-)(0[1-9]|1[0-2])(.|\/|-)((?:19|20)\d{2})"></p> <p>Result: <span class="uk-badge">22.01.2020</span></p> </div>

<div> <b>Find day in (DD MM YYYY). Possible separators: ". / -"</b> <p>Example text: Received on 22.01.2020</p> <p>REGEX: <input readonly class="uk-input" type="text" value="(0[1-9]|[12][0-9]|3[01])(?=(.|\/|-)(0[1-9]|1[0-2])(.|\/|-)((?:19|20)\d{2}))"></p> <p>Result: <span class="uk-badge">22</span></p> </div>

<div> <b>Find month in (DD MM YYYY). Possible separators: ". / -"</b> <p>Example text: Received on 22.01.2020</p> <p>REGEX: <input readonly class="uk-input" type="text" value="(?<=(0[1-9]|[12][0-9]|3[01])(.|\/|-))(0[1-9]|1[0-2])(?=(.|\/|-)((?:19|20)\d{2}))"></p> <p>Result: <span class="uk-badge">01</span></p> </div> <div> <b>Find year in (DD MM YYYY). Possible separators: ". / -"</b> <p>Example text: Received on 22.01.2020</p> <p>REGEX: <input readonly class="uk-input" type="text" value="(?<=(0[1-9]|[12][0-9]|3[01])(.|\/|-)(0[1-9]|1[0-2])(.|\/|-))((?:19|20)\d{2})"></p> <p>Result: <span class="uk-badge">2020</span></p> </div>

<h3 class="uk-heading-bullet">Date (MM DD YYYY)</h3>

<div> <b>Find date (MM DD YYYY). Possible separators: ". / -"</b> <p>Example text: Received on 01/22/2020</p> <p>REGEX: <input readonly class="uk-input" type="text" value="(0[1-9]|1[0-2])(.|\/|-)(0[1-9]|[12][0-9]|3[01])(.|\/|-)((?:19|20)\d{2})"></p> <p>Result: <span class="uk-badge">01/22/2020</span></p> </div>

<div> <b>Find month in (MM DD YYYY). Possible separators: ". / -"</b> <p>Example text: Received on 01/22/2020</p> <p>REGEX: <input readonly class="uk-input" type="text" value="(0[1-9]|1[0-2])(?=(.|\/|-)(0[1-9]|[12][0-9]|3[01])(.|\/|-)((?:19|20)\d{2}))"></p> <p>Result: <span class="uk-badge">01</span></p> </div>

<div> <b>Find day (MM DD YYYY). Possible separators: ". / -"</b> <p>Example text: Received on 01/22/2020</p> <p>REGEX: <input readonly class="uk-input" type="text" value="(?<=(0[1-9]|1[0-2])(.|\/|-))(0[1-9]|[12][0-9]|3[01])(?=(.|\/|-)((?:19|20)\d{2}))"></p> <p>Result: <span class="uk-badge">22</span></p> </div> <div> <b>Find year in (MM DD YYYY). Possible separators: ". / -"</b> <p>Example text: Received on 01/22/2020</p> <p>REGEX: <input readonly class="uk-input" type="text" value="(?<=(0[1-9]|1[0-2])(.|\/|-)(0[1-9]|[12][0-9]|3[01])(.|\/|-))((?:19|20)\d{2})"></p> <p>Result: <span class="uk-badge">2020</span></p> </div>

<h3 class="uk-heading-bullet">Date (YYYY MM DD)</h3>

<div> <b>Find date (YYYY MM DD). Possible separators: ". / -"</b> <p>Example text: Received on 2020-01-22</p> <p>REGEX: <input readonly class="uk-input" type="text" value="((?:19|20)\d{2})(.|\/|-)(0[1-9]|1[0-2])(.|\/|-)(0[1-9]|[12][0-9]|3[…