java中,正则表达式匹配逗号怎么写

2025-01-25 02:25:30
推荐回答(1个)
回答1:

String regex = ",";
System.out.println(",".matches(regex));
//难道是这个意思?