$(".selector").wijinputmask({
maskFormat: "(999)-000-0000 "
});
Value of maskFormat can also be a regex value, attentation, only the following key word supported by the regex value.
\A ----------- Matches any upper case alphabet [A-Z].
\a ----------- Matches any lower case alphabet [a-z].
\D ----------- Matches any decimal digit. Same as [0-9].
\W ----------- Matches any word character. It is same as [a-zA-Z_0-9].
\K ----------- Matches SBCS Katakana.
\H ----------- Matches all SBCS characters.
\A ----------- Matches any upper case DBCS alphabet [A-Z].
\a ----------- Matches any lower case DBCS alphabet [a-z].
\D ----------- Matches any DBCS decimal digit. Same as [0-9].
\W ----------- Matches any DBCS word character. It is same as [a-zA-Z_0-9].
\K ----------- DBCS Katakana
\J ----------- Hiragana
\Z ----------- All DBCS characters.
[^] Used to express an exclude subset.
- Used to define a contiguous character range.
{} Specifies that the pattern.
* The short expression of {0,}.
+ The short expression of {1,}.
? The short expression of {0,1}.
The following shows some example use Regex value.
\Dundefined-\Dundefined Zip Code (012-3456)
℡ \D{2,4}-\D{2,4}-\Dundefined/ Phone number (℡ 012-345-6789)
\D{2,4}-\D{2,4}-\Dundefined Phone number (012-345-6789)
Attentation, because maskFormat requrie that it uses a regex value, so assign the value as follows example.