﻿<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>Millisecond Forums » Millisecond Forums » Inquisit 6  » Text box with position of certain letters fixed</title><generator>InstantForum 2017-1 Final</generator><description>Millisecond Forums</description><link>https://forums.millisecond.com/</link><webMaster>Millisecond Forums</webMaster><lastBuildDate>Sat, 04 Jul 2026 18:03:56 GMT</lastBuildDate><ttl>20</ttl><item><title>Text box with position of certain letters fixed</title><link>https://forums.millisecond.com/Topic31699.aspx</link><description>Hi,&amp;nbsp;&lt;br/&gt;&lt;br/&gt;Is it possible to allow only certain letters within the text box responses ?&amp;nbsp;&lt;br/&gt;&lt;br/&gt;For example, I want respondents to type in a word response of 5 letters, where first letter can only be from a pool of certain letters (e.g., p, t, r ); second letter has to be a vowel only (a e i o u); third letter again is from a pool of given letters (r g h n) ; 4th letter is again a vowels (a e i o u)...&lt;br/&gt;&lt;br/&gt;Can /mask/ be used to restrict individual letters within a word ?&lt;br/&gt;&lt;br/&gt;If there is a similar script, pl point me towards it. &lt;br/&gt;&lt;br/&gt;Thanks  </description><pubDate>Thu, 10 Jun 2021 09:35:26 GMT</pubDate><dc:creator>abhi</dc:creator></item><item><title>RE: Text box with position of certain letters fixed</title><link>https://forums.millisecond.com/Topic31703.aspx</link><description>Thanks Dave.&amp;nbsp;&lt;br/&gt;&lt;br/&gt;Working fine.</description><pubDate>Thu, 10 Jun 2021 09:35:26 GMT</pubDate><dc:creator>abhi</dc:creator></item><item><title>RE: Text box with position of certain letters fixed</title><link>https://forums.millisecond.com/Topic31702.aspx</link><description>&lt;blockquote data-id="31701" class="if-quote-wrapper" unselectable="on" data-guid="1623251344394" id="if_insertedNode_1623251343480" contenteditable="false"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="31701" title="Move Cursor Below" contenteditable="false"&gt;&lt;span unselectable="on"&gt;+&lt;/span&gt;&lt;/a&gt;&lt;a class="quote-delete" unselectable="on" style="display: none;" href="#" data-id="31701" title="Delete Quote" contenteditable="false"&gt;&lt;span unselectable="on"&gt;x&lt;/span&gt;&lt;/a&gt;&lt;span unselectable="on" class="quote-markup"&gt;[quote]&lt;/span&gt;&lt;div unselectable="on" class="if-quote-header" contenteditable="false"&gt;&lt;div unselectable="on" class="if-quote-toggle-wrapper"&gt;&lt;a class="if-quote-toggle quote-link" href="#" data-id="31701" title=" "&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Dave - 6/9/2021&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-31701"&gt;&lt;div class="if-quote-message-margin" contenteditable="true"&gt;&lt;blockquote data-id="31699" class="if-quote-wrapper" unselectable="on" data-guid="1623251344394" id="if_insertedNode_1623249512309" contenteditable="false"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="31699" title="Move Cursor Below" contenteditable="false"&gt;&lt;span unselectable="on"&gt;+&lt;/span&gt;&lt;/a&gt;&lt;a class="quote-delete" unselectable="on" style="display: none;" href="#" data-id="31699" title="Delete Quote" contenteditable="false"&gt;&lt;span unselectable="on"&gt;x&lt;/span&gt;&lt;/a&gt;&lt;span unselectable="on" class="quote-markup"&gt;[quote]&lt;/span&gt;&lt;div unselectable="on" class="if-quote-header" contenteditable="false"&gt;&lt;div unselectable="on" class="if-quote-toggle-wrapper"&gt;&lt;a class="if-quote-toggle quote-link" href="#" data-id="31699" title=" "&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;abhi - 6/9/2021&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-31699"&gt;&lt;div class="if-quote-message-margin" contenteditable="true"&gt;Hi,&amp;nbsp;&lt;br/&gt;&lt;br/&gt;Is it possible to allow only certain letters within the text box responses ?&amp;nbsp;&lt;br/&gt;&lt;br/&gt;For example, I want respondents to type in a word response of 5 letters, where first letter can only be from a pool of certain letters (e.g., p, t, r ); second letter has to be a vowel only (a e i o u); third letter again is from a pool of given letters (r g h n) ; 4th letter is again a vowels (a e i o u)...&lt;br/&gt;&lt;br/&gt;Can /mask/ be used to restrict individual letters within a word ?&lt;br/&gt;&lt;br/&gt;If there is a similar script, pl point me towards it. &lt;br/&gt;&lt;br/&gt;Thanks  &lt;a class="if-quote-goto quote-link" href="#" data-id="31699"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/blockquote&gt;&lt;br/&gt;Yes, you can construct a&lt;strong&gt; regular expression&lt;/strong&gt; to match the pattern you described and use that in /mask.&lt;br/&gt;&lt;br/&gt;To learn regular expressions, see e.g.&lt;a href="https://regexone.com/"&gt;&lt;a href="https://regexone.com/"&gt;https://regexone.com/&lt;/a&gt;&lt;/a&gt;&lt;br/&gt;&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="31701"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/blockquote&gt;&lt;br/&gt;Your description is missing details regarding the characters allowed for the 5th letter, so here's an example covering only the four you detailed:&lt;br/&gt;&lt;br/&gt;&amp;lt;openended example&amp;gt;&lt;br/&gt;/ mask = ^[ptr][aeiou][rghn][aeiou]$&lt;br/&gt;&amp;lt;/openended&amp;gt;&lt;br/&gt;</description><pubDate>Wed, 09 Jun 2021 15:14:45 GMT</pubDate><dc:creator>Dave</dc:creator></item><item><title>RE: Text box with position of certain letters fixed</title><link>https://forums.millisecond.com/Topic31701.aspx</link><description>&lt;blockquote data-id="31699" class="if-quote-wrapper" unselectable="on" data-guid="1623249513194" id="if_insertedNode_1623249512309" contenteditable="false"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="31699" title="Move Cursor Below" contenteditable="false"&gt;&lt;span unselectable="on"&gt;+&lt;/span&gt;&lt;/a&gt;&lt;a class="quote-delete" unselectable="on" style="display: none;" href="#" data-id="31699" title="Delete Quote" contenteditable="false"&gt;&lt;span unselectable="on"&gt;x&lt;/span&gt;&lt;/a&gt;&lt;span unselectable="on" class="quote-markup"&gt;[quote]&lt;/span&gt;&lt;div unselectable="on" class="if-quote-header" contenteditable="false"&gt;&lt;div unselectable="on" class="if-quote-toggle-wrapper"&gt;&lt;a class="if-quote-toggle quote-link" href="#" data-id="31699" title=" "&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;abhi - 6/9/2021&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-31699"&gt;&lt;div class="if-quote-message-margin" contenteditable="true"&gt;Hi,&amp;nbsp;&lt;br/&gt;&lt;br/&gt;Is it possible to allow only certain letters within the text box responses ?&amp;nbsp;&lt;br/&gt;&lt;br/&gt;For example, I want respondents to type in a word response of 5 letters, where first letter can only be from a pool of certain letters (e.g., p, t, r ); second letter has to be a vowel only (a e i o u); third letter again is from a pool of given letters (r g h n) ; 4th letter is again a vowels (a e i o u)...&lt;br/&gt;&lt;br/&gt;Can /mask/ be used to restrict individual letters within a word ?&lt;br/&gt;&lt;br/&gt;If there is a similar script, pl point me towards it. &lt;br/&gt;&lt;br/&gt;Thanks  &lt;a class="if-quote-goto quote-link" href="#" data-id="31699"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/blockquote&gt;&lt;br/&gt;Yes, you can construct a&lt;strong&gt; regular expression&lt;/strong&gt; to match the pattern you described and use that in /mask.&lt;br/&gt;&lt;br/&gt;To learn regular expressions, see e.g.&lt;a href="https://regexone.com/"&gt;https://regexone.com/&lt;/a&gt;&lt;br/&gt;&lt;br/&gt;</description><pubDate>Wed, 09 Jun 2021 14:40:10 GMT</pubDate><dc:creator>Dave</dc:creator></item></channel></rss>