回答編集履歴
1
add
test
CHANGED
@@ -3,6 +3,9 @@
|
|
3
3
|
```java
|
4
4
|
@Pattern(regexp = "^([0-9]+|[a-zA-Z0-9]+)$"
|
5
5
|
```
|
6
|
+
see: https://spring.pleiades.io/specifications/platform/8/apidocs/javax/validation/constraints/pattern
|
7
|
+
|
8
|
+
> 正規表現は、Java の正規表現の規則に従います。PatternSE を参照してください。
|
6
9
|
|
7
10
|
see: https://docs.oracle.com/javase/jp/8/docs/api/java/util/regex/Pattern.html
|
8
11
|
|