java提取字符串所有引号的值,不包括数字和空格

字符串:
@ResponseBody
public HashMap queryParcel(
@RequestParam("partnerID") int partnerID,
@RequestParam(value = "mobileNum", required = false) String mobileNum,
@RequestParam(value = "parcelNum", required = false) String parcelNum,
@RequestParam(value = "status", defaultValue = "0") String status,
@RequestParam(value = "queryType", defaultValue = "0") String queryType,
@RequestParam(value = "userType", defaultValue = "0") String userType,
@RequestParam(value = "courierMobileNum", defaultValue = "") String courierMobileNum,
@RequestParam(value = "startNum", defaultValue = "0") int startNum,
@RequestParam(value = "endNum", defaultValue = "10") int endNum,
HttpServletRequest httpRequest) throws Exception {
HashMap response = new HashMap<>();

结果:partnerID mobileNum parcelNum status queryType userType courierMobileNum startNum endNum

1个回答

 (?<=\")[a-zA-Z](?=\")
Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
立即提问