本文介绍正则
断言
(?=pattern)
正向先行断言
(?!pattern)
负向先行断言
(?<=pattern)
正向后行断言
(?<!pattern)
负向后行断言
^\s+(.*)?(?<!(info|error|rpcError|rpcInfo|getPin))\((.*)"[^\x00-\xff]+"
tLogger.rpcError("", "接口添加购物车异常");
cartResult.setErrorMessage("购物车服务返回为空");
tLogger.info("", "获取订单号失败");
tLogger.rpcError("", null, "重试获取订单号异常", t);
tLogger.info("submitOrder","跳过接单");
result.setMessage("未知的流程编号");
return new CheckAddressVO(false, countryId, "区县不匹配:" + areaResultVo2String(countrys));
tLogger.rpcError("", "外部接口提供京配和生鲜配配置出现异常", e, zxjDeliveryRequest);
tLogger.error("", "给订单中心发消息失败", null);
result.setResultMessage("对不起,系统繁忙,请稍候再试!");
locShopNameResult.put(Long.parseLong(shopId), "门店已失效,请重新选择");
throw new EngineRuntimeException("抱歉,您所添加的优惠套装为合约计划商品,无法提交");
refrence
http://blog.csdn.net/u012047933/article/details/38365541 http://www.jb51.net/article/31491.htm