Note that there are some explanatory texts on larger screens.

plurals
  1. PORegular expression for checking postal address field value
    primarykey
    data
    text
    <p>I am looking for a <a href="/questions/tagged/regular-expression" class="post-tag" title="show questions tagged 'regular-expression'" rel="tag">regular-expression</a> which can be used to check a postal address field value, with minimum length of 10, containing numbers, and characters as well:</p> <p>Currently I use this expression:</p> <pre><code>`\\[a-zA-Z]|\d|.|\s{10,}` </code></pre> <p>The environment is:</p> <p><a href="/questions/tagged/lotus" class="post-tag" title="show questions tagged 'lotus'" rel="tag">lotus</a> <a href="/questions/tagged/xpages" class="post-tag" title="show questions tagged 'xpages'" rel="tag">xpages</a>, and the regular expression is stored in properties file within the application design.</p> <pre><code>&lt;xp:inputText id="address" dojoType="dijit.form.ValidationTextBox" value="#{complaintDocument.address}"&gt; &lt;xp:this.dojoAttributes&gt; &lt;xp:dojoAttribute name="promptMessage"&gt; &lt;xp:this.value&gt;&lt;![CDATA[${javascript:clientData['address']}]]&gt;&lt;/xp:this.value&gt; &lt;/xp:dojoAttribute&gt; &lt;xp:dojoAttribute name="placeHolder"&gt; &lt;xp:this.value&gt;&lt;![CDATA[${javascript:common['textValueMinimumTenCharacters']}]]&gt;&lt;/xp:this.value&gt; &lt;/xp:dojoAttribute&gt; &lt;xp:dojoAttribute name="trim" value="true"&gt; &lt;/xp:dojoAttribute&gt; &lt;xp:dojoAttribute name="regExp"&gt; &lt;xp:this.value&gt;&lt;![CDATA[#{javascript:regExp['minimumTenCharacters']}]]&gt;&lt;/xp:this.value&gt; &lt;/xp:dojoAttribute&gt; &lt;/xp:this.dojoAttributes&gt; &lt;/xp:inputText&gt; </code></pre> <p>Is there any wat to make the regular expression for this purpose more simple?</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload