<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Input Validation/Regex Cheat Sheet in HPE Morpheus Enterprise</title>
    <link>https://community.hpe.com/t5/hpe-morpheus-enterprise/input-validation-regex-cheat-sheet/m-p/7250975#M4149</link>
    <description>&lt;P&gt;This is a wiki page to contribute helpful regex for input validations in a centralized post.&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;&lt;STRONG&gt;Note:&lt;/STRONG&gt; This is a wiki post and others can contribute directly to it.&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;UL&gt;
&lt;LI&gt;Add the code to code blocks&lt;/LI&gt;
&lt;LI&gt;Add code to most appropriate section (add as needed)&lt;/LI&gt;
&lt;LI&gt;Any information is helpful!&lt;/LI&gt;
&lt;/UL&gt;
&lt;H2&gt;&lt;A name="email-address-1" class="anchor" href="#email-address-1"&gt;&lt;/A&gt;Email Address&lt;/H2&gt;
&lt;UL&gt;
&lt;LI&gt;Verifies string@string.string for email addresses&lt;BR /&gt;
&lt;CODE style="background : #f0f1f2;"&gt;\S+@\S+\.\S+&lt;/CODE&gt;&lt;BR /&gt;
or&lt;BR /&gt;
&lt;CODE style="background : #f0f1f2;"&gt;([-!#-'*+\/-9=?A-Z^-~]+(\.[-!#-'*+\/-9=?A-Z^-~]+)*|"([]!#-[^-~ \t]|(\\[\t -~]))+")@([0-9A-Za-z]([0-9A-Za-z-]{0,61}[0-9A-Za-z])?(\.[0-9A-Za-z]([0-9A-Za-z-]{0,61}[0-9A-Za-z])?)*|\[((25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]?[0-9])(\.(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]?[0-9])){3}|IPv6:((((0|[1-9A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&gt;Numeric CIDR Range (EX: 8-32)&lt;BR /&gt;
&lt;CODE style="background : #f0f1f2;"&gt;^([8-9]|1[0-9]|2[0-9]|3[0-2])$&lt;/CODE&gt;&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;P&gt;This handles IP address AND/OR IP address + CIDR&lt;BR /&gt;
&lt;CODE style="background : #f0f1f2;"&gt;^([0-9]{1,3}\.){3}[0-9]{1,3}(\/([0-9]|[1-2][0-9]|3[0-2]))?$&lt;/CODE&gt;&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;P&gt;This handles IP address ONLY but does not allow for erroneous values, such as 256:&lt;BR /&gt;
&lt;CODE style="background : #f0f1f2;"&gt;^(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$&lt;/CODE&gt;&lt;/P&gt;
&lt;/LI&gt;
&lt;/UL&gt;
&lt;H2&gt;&lt;A name="naming-strings-3" class="anchor" href="#naming-strings-3"&gt;&lt;/A&gt;Naming / Strings&lt;/H2&gt;
&lt;UL&gt;
&lt;LI&gt;Min/Max characters for naming&lt;BR /&gt;
&lt;CODE style="background : #f0f1f2;"&gt;^[A-Za-z0-9]{4,15}$&lt;/CODE&gt;&lt;/LI&gt;
&lt;/UL&gt;</description>
    <pubDate>Wed, 20 Jul 2022 18:21:46 GMT</pubDate>
    <dc:creator>cbunge</dc:creator>
    <dc:date>2022-07-20T18:21:46Z</dc:date>
    <item>
      <title>Input Validation/Regex Cheat Sheet</title>
      <link>https://community.hpe.com/t5/hpe-morpheus-enterprise/input-validation-regex-cheat-sheet/m-p/7250975#M4149</link>
      <description>&lt;P&gt;This is a wiki page to contribute helpful regex for input validations in a centralized post.&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;&lt;STRONG&gt;Note:&lt;/STRONG&gt; This is a wiki post and others can contribute directly to it.&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;UL&gt;
&lt;LI&gt;Add the code to code blocks&lt;/LI&gt;
&lt;LI&gt;Add code to most appropriate section (add as needed)&lt;/LI&gt;
&lt;LI&gt;Any information is helpful!&lt;/LI&gt;
&lt;/UL&gt;
&lt;H2&gt;&lt;A name="email-address-1" class="anchor" href="#email-address-1"&gt;&lt;/A&gt;Email Address&lt;/H2&gt;
&lt;UL&gt;
&lt;LI&gt;Verifies string@string.string for email addresses&lt;BR /&gt;
&lt;CODE style="background : #f0f1f2;"&gt;\S+@\S+\.\S+&lt;/CODE&gt;&lt;BR /&gt;
or&lt;BR /&gt;
&lt;CODE style="background : #f0f1f2;"&gt;([-!#-'*+\/-9=?A-Z^-~]+(\.[-!#-'*+\/-9=?A-Z^-~]+)*|"([]!#-[^-~ \t]|(\\[\t -~]))+")@([0-9A-Za-z]([0-9A-Za-z-]{0,61}[0-9A-Za-z])?(\.[0-9A-Za-z]([0-9A-Za-z-]{0,61}[0-9A-Za-z])?)*|\[((25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]?[0-9])(\.(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]?[0-9])){3}|IPv6:((((0|[1-9A-Fa-f][0-9A-Fa-f]{0,3}):){6}|::((0|[1-9A-Fa-f][0-9A-Fa-f]{0,3}):){5}|[0-9A-Fa-f]{0,4}::((0|[1-9A-Fa-f][0-9A-Fa-f]{0,3}):){4}|(((0|[1-9A-Fa-f][0-9A-Fa-f]{0,3}):)?(0|[1-9A-Fa-f][0-9A-Fa-f]{0,3}))?::((0|[1-9A-Fa-f][0-9A-Fa-f]{0,3}):){3}|(((0|[1-9A-Fa-f][0-9A-Fa-f]{0,3}):){0,2}(0|[1-9A-Fa-f][0-9A-Fa-f]{0,3}))?::((0|[1-9A-Fa-f][0-9A-Fa-f]{0,3}):){2}|(((0|[1-9A-Fa-f][0-9A-Fa-f]{0,3}):){0,3}(0|[1-9A-Fa-f][0-9A-Fa-f]{0,3}))?::(0|[1-9A-Fa-f][0-9A-Fa-f]{0,3}):|(((0|[1-9A-Fa-f][0-9A-Fa-f]{0,3}):){0,4}(0|[1-9A-Fa-f][0-9A-Fa-f]{0,3}))?::)((0|[1-9A-Fa-f][0-9A-Fa-f]{0,3}):(0|[1-9A-Fa-f][0-9A-Fa-f]{0,3})|(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]?[0-9])(\.(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]?[0-9])){3})|(((0|[1-9A-Fa-f][0-9A-Fa-f]{0,3}):){0,5}(0|[1-9A-Fa-f][0-9A-Fa-f]{0,3}))?::(0|[1-9A-Fa-f][0-9A-Fa-f]{0,3})|(((0|[1-9A-Fa-f][0-9A-Fa-f]{0,3}):){0,6}(0|[1-9A-Fa-f][0-9A-Fa-f]{0,3}))?::)|(?!IPv6:)[0-9A-Za-z-]*[0-9A-Za-z]:[!-Z^-~]+)])&lt;/CODE&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;H2&gt;&lt;A name="ip-addresses-2" class="anchor" href="#ip-addresses-2"&gt;&lt;/A&gt;IP Addresses&lt;/H2&gt;
&lt;UL&gt;
&lt;LI&gt;
&lt;P&gt;Numeric CIDR Range (EX: 8-32)&lt;BR /&gt;
&lt;CODE style="background : #f0f1f2;"&gt;^([8-9]|1[0-9]|2[0-9]|3[0-2])$&lt;/CODE&gt;&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;P&gt;This handles IP address AND/OR IP address + CIDR&lt;BR /&gt;
&lt;CODE style="background : #f0f1f2;"&gt;^([0-9]{1,3}\.){3}[0-9]{1,3}(\/([0-9]|[1-2][0-9]|3[0-2]))?$&lt;/CODE&gt;&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;P&gt;This handles IP address ONLY but does not allow for erroneous values, such as 256:&lt;BR /&gt;
&lt;CODE style="background : #f0f1f2;"&gt;^(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$&lt;/CODE&gt;&lt;/P&gt;
&lt;/LI&gt;
&lt;/UL&gt;
&lt;H2&gt;&lt;A name="naming-strings-3" class="anchor" href="#naming-strings-3"&gt;&lt;/A&gt;Naming / Strings&lt;/H2&gt;
&lt;UL&gt;
&lt;LI&gt;Min/Max characters for naming&lt;BR /&gt;
&lt;CODE style="background : #f0f1f2;"&gt;^[A-Za-z0-9]{4,15}$&lt;/CODE&gt;&lt;/LI&gt;
&lt;/UL&gt;</description>
      <pubDate>Wed, 20 Jul 2022 18:21:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/hpe-morpheus-enterprise/input-validation-regex-cheat-sheet/m-p/7250975#M4149</guid>
      <dc:creator>cbunge</dc:creator>
      <dc:date>2022-07-20T18:21:46Z</dc:date>
    </item>
    <item>
      <title>Re: Input Validation/Regex Cheat Sheet</title>
      <link>https://community.hpe.com/t5/hpe-morpheus-enterprise/input-validation-regex-cheat-sheet/m-p/7250976#M4150</link>
      <description />
      <pubDate>Wed, 20 Jul 2022 18:32:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/hpe-morpheus-enterprise/input-validation-regex-cheat-sheet/m-p/7250976#M4150</guid>
      <dc:creator>cbunge</dc:creator>
      <dc:date>2022-07-20T18:32:45Z</dc:date>
    </item>
    <item>
      <title>Re: Input Validation/Regex Cheat Sheet</title>
      <link>https://community.hpe.com/t5/hpe-morpheus-enterprise/input-validation-regex-cheat-sheet/m-p/7250977#M4151</link>
      <description />
      <pubDate>Wed, 20 Jul 2022 18:32:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/hpe-morpheus-enterprise/input-validation-regex-cheat-sheet/m-p/7250977#M4151</guid>
      <dc:creator>cbunge</dc:creator>
      <dc:date>2022-07-20T18:32:49Z</dc:date>
    </item>
  </channel>
</rss>

