# Trying to use restrict property to limit 1st char to 0-5, etc

**URL:** <https://forum.kirupa.com/t/trying-to-use-restrict-property-to-limit-1st-char-to-0-5-etc/296218>\
**Category:** flash\
**Created:** [September 11, 2009, 3:34am UTC](https://forum.kirupa.com/t/trying-to-use-restrict-property-to-limit-1st-char-to-0-5-etc/296218 "2009-09-11T03:34:07Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ohbeewan](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/ohbeewan/32/1745_2.png) [@ohbeewan](https://forum.kirupa.com/u/ohbeewan)\
**Post date:** [September 11, 2009, 3:34am UTC](https://forum.kirupa.com/t/trying-to-use-restrict-property-to-limit-1st-char-to-0-5-etc/296218/1 "2009-09-11T03:34:07Z")

</div>

Hello all you RegEx fiends,

I’m trying to use the restrict property of a TextInput field to limit the entry of minutes, so restricting the number of characters to 2, while restricting the first character to the range [0-5] and the second character to the range [0-9]

I’ve tried a billion things, but I’m not sure I’m going about this the right way, any advice?

Thanks!
