Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
extjs番号フィールドが1つあります。0〜9の数字とドット(。)を入力できます。この点も回避するにはどうすればよいですか。整数だけが必要です。必要な正規表現を教えてください。
実際にはnumberfield、これを行うためのconfigプロパティがあるため、次のようにフィールドを指定できます。
numberfield
{ xtype: 'numberfield', allowDecimals: false }
/^\d+$/リクエストした正規表現です。
/^\d+$/
キャプチャする必要がある場合は、試してください/^(\d+)$/
/^(\d+)$/