<b> This generates self-referential counter strings. Anywhere in the string, the separator character is at the position indicated by the number to its left. </b>
<br/>This is useful for testing string length limits in form fields for all kinds of applications.
<br/>
<br/>
<div class="defaults">Default setups:
<input type="button" name="setupEmail" value="Email 254+" />
<input type="button" name="setupSimple" value="Simple 256" />
</div>
<div class="input">
<label for="counter_string">Length</label>
<input type='text' class='counter_string_length' name='counter_string_length' value="256" />
<span class="hint">Use up/down & shift-up/down to change.</span>
</div>
<div class="input">
<label for="prefix">Prefix</label>
<input type='text' class='prefix' name="prefix" value="Self-referential counting string" />
</div>
<div class="input">
<label for="separator">Separator</label>
<input type='text' class='separator' name="separator" value="." maxlength="1" />
</div>
<div class="input">
<label for="repeatedPrefix">Before each number</label>
<input type='text' class='repeatedPrefix' name="repeatedPrefix" value="" />
</div>
<div class="input">
<label for="repeatedStr">After each number</label>
<input type='text' class='repeatedStr' name="repeatedStr" value="->" />
</div>
<div class="input">
<label for="suffix">Suffix</label>
<input type='text' class='suffix' name="suffix" value="" />
</div>
<br/>Result to copy to clipboard (or paste your own text to measure its length):
<br/>
<textarea id='result' style="width: 90%" rows="10">(please change the text boxes above to see a result)</textarea>
<div>Actual length: <span id="actualLength">?</span> (paste text above to measure its length)</div>