jQWidgets Forums

jQuery UI Widgets Forums Editors MaskedInput Mask Syntax Description ?

Tagged: 

This topic contains 3 replies, has 2 voices, and was last updated by  Peter Stoev 11 years, 9 months ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
  • Mask Syntax Description ? #27971

    stephan
    Participant

    Hi,

    Where can I find a description of the mask syntax ?

    I looked at documentation and also at the demo, but could not find any description of the mask format and syntax.

    Regards,
    Stephan

    Mask Syntax Description ? #28000

    Peter Stoev
    Keymaster

    Hi Stephan,

    Masked Input can display and edit only numbers and as shown in the demos and documentation mask characters are expected to be “#” for numbers.

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com/

    Mask Syntax Description ? #28015

    stephan
    Participant

    Hi Peter,

    What about the example for the IP address ? It seems to use a regular expression isntead of ‘#’. What is the syntax for this ? Are the enclosing ‘[]’ mandatory ? Is any standard JAVASCRIPT regular expression allowed ?

    Also: How do I escape reserved characters like ‘#’, ‘[‘, ‘]’ ?

    Regards,
    Stephan

    Mask Syntax Description ? #28021

    Peter Stoev
    Keymaster

    Hi Stephan,

    You cannot escape reserved characters.
    Standard regular expressions are not allowed. The [0-9] defines a range of numbers.

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.