Text box with position of certain letters fixed


Author
Message
abhi
abhi
Guru (5.5K reputation)Guru (5.5K reputation)Guru (5.5K reputation)Guru (5.5K reputation)Guru (5.5K reputation)Guru (5.5K reputation)Guru (5.5K reputation)Guru (5.5K reputation)Guru (5.5K reputation)
Group: Forum Members
Posts: 102, Visits: 515
Hi, 

Is it possible to allow only certain letters within the text box responses ? 

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)...

Can /mask/ be used to restrict individual letters within a word ?

If there is a similar script, pl point me towards it.

Thanks
Dave
Dave
Supreme Being (937K reputation)Supreme Being (937K reputation)Supreme Being (937K reputation)Supreme Being (937K reputation)Supreme Being (937K reputation)Supreme Being (937K reputation)Supreme Being (937K reputation)Supreme Being (937K reputation)Supreme Being (937K reputation)
Group: Administrators
Posts: 11K, Visits: 70K
abhi - 6/9/2021
Hi, 

Is it possible to allow only certain letters within the text box responses ? 

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)...

Can /mask/ be used to restrict individual letters within a word ?

If there is a similar script, pl point me towards it.

Thanks

Yes, you can construct a regular expression to match the pattern you described and use that in /mask.

To learn regular expressions, see e.g.https://regexone.com/


Dave
Dave
Supreme Being (937K reputation)Supreme Being (937K reputation)Supreme Being (937K reputation)Supreme Being (937K reputation)Supreme Being (937K reputation)Supreme Being (937K reputation)Supreme Being (937K reputation)Supreme Being (937K reputation)Supreme Being (937K reputation)
Group: Administrators
Posts: 11K, Visits: 70K
Dave - 6/9/2021
abhi - 6/9/2021
Hi, 

Is it possible to allow only certain letters within the text box responses ? 

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)...

Can /mask/ be used to restrict individual letters within a word ?

If there is a similar script, pl point me towards it.

Thanks

Yes, you can construct a regular expression to match the pattern you described and use that in /mask.

To learn regular expressions, see e.g.https://regexone.com/


Your description is missing details regarding the characters allowed for the 5th letter, so here's an example covering only the four you detailed:

<openended example>
/ mask = ^[ptr][aeiou][rghn][aeiou]$
</openended>

abhi
abhi
Guru (5.5K reputation)Guru (5.5K reputation)Guru (5.5K reputation)Guru (5.5K reputation)Guru (5.5K reputation)Guru (5.5K reputation)Guru (5.5K reputation)Guru (5.5K reputation)Guru (5.5K reputation)
Group: Forum Members
Posts: 102, Visits: 515
Thanks Dave. 

Working fine.
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Reading This Topic

Explore
Messages
Mentions
Search