Regular Expression Mask JQuery Plugin
JavaScript
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
README initial release Jan 14, 2011
jquery-1.4.4.js initial release Jan 14, 2011
jquery-simulate.js initial release Jan 14, 2011
regex-mask-plugin.js Inclusao da mascara de inteiros Feb 3, 2011
test.html initial release Jan 14, 2011

README

This plugin will perform mask validation based on an arbitrary regular
expression. It will take the current input value, plus the incoming
character in the keydown event and test against the provided regex to
assert if the incoming character should be accepted or not.

In terms, it is a bit alike the keyfilter plugin, but it tests the
incoming character in the context of the whole string.

USAGE:

  $('.float').regexMask(/^\d+(,\d+)?$/);

or you can use one of the named masks, which include:

  float-ptbr
  float-enus