﻿<?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 5  » validresponse regular expressions</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 07:12:22 GMT</lastBuildDate><ttl>20</ttl><item><title>validresponse regular expressions</title><link>https://forums.millisecond.com/Topic20979.aspx</link><description>I'm looking for an easy easy syntax to specify a valid response for any combination of four x's and four o's (i.e. an 8 letter string containing exactly four x and o in any pattern, without iterating through the possible patterns.&amp;nbsp;&lt;br/&gt;&lt;br/&gt;Thanks&lt;br/&gt;Lisa</description><pubDate>Tue, 07 Mar 2017 14:10:02 GMT</pubDate><dc:creator>lwise</dc:creator></item><item><title>RE: validresponse regular expressions</title><link>https://forums.millisecond.com/Topic21004.aspx</link><description>Perfect

Thanks so much for your prompt response

Lisa</description><pubDate>Tue, 07 Mar 2017 14:10:02 GMT</pubDate><dc:creator>lwise</dc:creator></item><item><title>RE: validresponse regular expressions</title><link>https://forums.millisecond.com/Topic20989.aspx</link><description>&lt;div data-id="20986" class="if-quote-wrapper" unselectable="on" data-guid="1488905443196"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="20986" 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="20986" 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="20986" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Dave - Tuesday, March 7, 2017&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-20986"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="20979" class="if-quote-wrapper" unselectable="on" data-guid="1488905443196"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="20979" 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="20979" 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="20979" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;lwise - Tuesday, March 7, 2017&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-20979"&gt;&lt;div class="if-quote-message-margin"&gt;I'm looking for an easy easy syntax to specify a valid response for any combination of four x's and four o's (i.e. an 8 letter string containing exactly four x and o in any pattern, without iterating through the possible patterns.&amp;nbsp;&lt;br/&gt;&lt;br/&gt;Thanks&lt;br/&gt;Lisa&lt;a class="if-quote-goto quote-link" href="#" data-id="20979"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/div&gt;&lt;br/&gt;You can specify a regular expression to match that pattern via an &amp;lt;openended&amp;gt;'s /mask attribute.&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="20986"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/div&gt;&lt;br/&gt;Alternatively, you can achieve a similar effect using /isvalidresponse and a couple of string functions:&lt;br/&gt;&lt;br/&gt;&amp;lt;openended myopended&amp;gt;&lt;br/&gt;/ charlimit = 8&lt;br/&gt;/ isvalidresponse = [&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; length(replaceall(tolower(openended.myopended.response), "x","")) == 4 &amp;amp;&amp;amp;&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; length(replaceall(tolower(openended.myopended.response), "o","")) == 4&lt;br/&gt;]&lt;br/&gt;&amp;lt;/openended&amp;gt;&lt;br/&gt;</description><pubDate>Tue, 07 Mar 2017 08:51:51 GMT</pubDate><dc:creator>Dave</dc:creator></item><item><title>RE: validresponse regular expressions</title><link>https://forums.millisecond.com/Topic20986.aspx</link><description>&lt;div data-id="20979" class="if-quote-wrapper" unselectable="on" data-guid="1488901353584"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="20979" 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="20979" 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="20979" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;lwise - Tuesday, March 7, 2017&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-20979"&gt;&lt;div class="if-quote-message-margin"&gt;I'm looking for an easy easy syntax to specify a valid response for any combination of four x's and four o's (i.e. an 8 letter string containing exactly four x and o in any pattern, without iterating through the possible patterns.&amp;nbsp;&lt;br/&gt;&lt;br/&gt;Thanks&lt;br/&gt;Lisa&lt;a class="if-quote-goto quote-link" href="#" data-id="20979"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/div&gt;&lt;br/&gt;You can specify a regular expression to match that pattern via an &amp;lt;openended&amp;gt;'s /mask attribute.&lt;br/&gt;</description><pubDate>Tue, 07 Mar 2017 07:43:26 GMT</pubDate><dc:creator>Dave</dc:creator></item></channel></rss>