回答編集履歴
1
add
answer
CHANGED
@@ -3,7 +3,10 @@
|
|
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
|
6
7
|
|
8
|
+
> 正規表現は、Java の正規表現の規則に従います。PatternSE を参照してください。
|
9
|
+
|
7
10
|
see: https://docs.oracle.com/javase/jp/8/docs/api/java/util/regex/Pattern.html
|
8
11
|
|
9
12
|
> 論理演算子
|