IM-BIS for Accel Platform / Designer Help

Initial Version 2014-01-01

Contents

Description example of check format

It is an example of description method which can be used in check format in custom input check.

Mail address

Check whether it matches with the expression format of mail address.

Format

  • Check whether it is in the {1 or more arbitrary alphanumeric characters} + “@”+{1 or more arbitrary alphanumeric characters} +”.”+ {1 or more arbitrary alphanumeric characters of ”.”} format.
[\w_-]+@[\w_-]+\.[\w._-]+

Usage example

  • abc_123@intra-mart.jp” -> There is no error as it matches with the format.
  • “@intra-mart.jp” -> There is an error as there is not even a single character before @.
  • abc_123@intra-mart” -> There is an error as there is no ”.” after @.

Postal code

Check whether it matches with the expression format of postal code.

Format

  • Check whether it is in the {Any 3 numbers}+”-“+{Any 4 numbers} format.
^[0-9]{3}-[0-9]{4}$

Usage example

  • “123-4567” -> There is no error as it matches with the format.
  • “1234567” -> There is an error as there is no “-” in between.
  • “1234-567” -> There is an error as there is no 3 digit number + “-” + 4 digit number.

Phone number

Check whether it matches with the expression format of phone number.

Format

  • Check whether it is in the {Any 3 numbers} + “-” + {Any 4 numbers} format.
^\d{2,4}-\d{2,4}-\d{4}$

Usage example

  • “123-4567” -> There is no error as it matches with the format.
  • “1234567” -> There is an error as there is no “-” in between.
  • “1234-567” -> There is an error as there is no 3 digit number + “-” + 4 digit number.

Single-byte numerals

Check whether the entered contents are single-byte numerals only.

Format

  • Check whether it is {1 or more arbitrary numerals}.
^\d+$

Usage example

  • “12345” -> There is no error as it matches with the format.
  • “aaa” -> There is an error as single-byte numerals are not included.
  • “123abc” -> There is an error as alphabetical characters are included.

Single-byte alphabetical characters

Check whether the entered contents are single-byte alphabetical characters only.

Format

  • Check whether it is {1 or more arbitrary alphabetical characters}.
^[a-zA-Z]+$

Usage example

  • “abcde” -> There is no error as it matches with the format.
  • “123” -> There is an error as single-byte alphabets are not included.
  • “123abc” -> There is an error as numbers are included.

Single-byte Kana

Check whether the entered contents are single-byte kana only.

Format

  • Check whether it is {1 or more arbitrary kana characters}.
^[。-゚+]+$

Usage example

  • “アイウエオ” -> There is no error as it matches with the format.
  • “123abc” -> There is an error as single-byte kana is not included.
  • “アイウエオ123abc” -> There is an error as alphanumberic characters are included.

Hiragana

Check whether the entered contents are Hiragana only.

Format

  • Check whether it is {1 or more arbitrary hiragana characters}.
^[ぁ-ゞ]+$

Usage example

  • “あいうえお” -> There is no error as it matches with the format.
  • “アイウエオ” -> There is an error as Hiragana is not included.
  • “あいうえおアイウエオ” -> There is an error as single-byte kana is included.

Katakana

Check whether the entered contents are Katakana only.

Format

  • Check whether it is {1 or more arbitrary katakana characters}.
^[ァ-ヶ]+$

Usage example

  • “あいうえお” -> There is no error as it matches with the format.
  • “アイウエオ” -> There is an error as Katakana is not included.
  • “アイウエオアイウエオ” -> There is an error as single-byte kana is included.

Kanji

Check whether the entered contents are kanji only.

Format

  • Check whether it is {Arbitrary 1 or more kanji characters}.
^[一-龠]*$

Usage example

  • “入力文字” -> There is no error as it matches with the format.
  • “あいうえおアイウエオ” -> There is an error as kanji is not included.
  • “入力アイウエオ” -> There is an error as single-byte kana is included.

Double-byte characters

Check whether the entered contents are double-byte characters (Kanji, Hiragana, Katakana).

Format

  • Check whether it is {1 or more arbitrary double-byte characters}.
^[^-~。-゚]+$

Usage example

  • “入力文字あいうえおアイウエオ” -> There is no error as it matches with the format.
  • “アイウエオ123abc” -> There is an error as double-byte characters are not included.
  • “入力アイウエオ123abc” -> There is an error as single-byte characters are included.

Truth value/Boolean value/Logical value

Check whether the entered content is truth-value (true/false).

Format

  • Check whether it is either “true” or “false” in case of lower-case single-byte characters.
^true$|^false$

Usage example

  • “true” -> There is no error as it matches with the format.
  • “FALSE” -> There is an error as it is described in upper-case characters.

Contents