- 论坛徽章:
- 0
|
- >>> string = '''/* 44: */ catch (Exception e)
- /* 45: */ {
- /* 46:68 */ mResult = new MobileResult();
- /* 47:69 */ mResult.setResult(-1);
- /* 48:70 */ mResult.setMsg("服务器异常!");
- /* 49:71 */ this.log.error("获取配置信息出现异常", e);
- /* 50: */ }
- /* 51:73 */ return this.gson.toJson(mResult);
- /* 52: */ }
- /* 53: */ }
- /* Location: webapps\gams\WEB-INF\classes\
- * Qualified Name: com.xx.gams.ci.ciconfigInfo.ConfigInfoController
- * JD-Core Version: 0.7.0.1
- */'''
- >>> print string
- /* 44: */ catch (Exception e)
- /* 45: */ {
- /* 46:68 */ mResult = new MobileResult();
- /* 47:69 */ mResult.setResult(-1);
- /* 48:70 */ mResult.setMsg("服务器异常!");
- /* 49:71 */ this.log.error("获取配置信息出现异常", e);
- /* 50: */ }
- /* 51:73 */ return this.gson.toJson(mResult);
- /* 52: */ }
- /* 53: */ }
- >>> import re
- >>> m = re.findall(r'/\*.*?\*/',string,re.DOTALL)
- >>> for item in m:
- print item
- /* 44: */
- /* 45: */
- /* 46:68 */
- /* 47:69 */
- /* 48:70 */
- /* 49:71 */
- /* 50: */
- /* 51:73 */
- /* 52: */
- /* 53: */
- /* Location: webapps\gams\WEB-INF\classes * Qualified Name: com.xx.gams.ci.ciconfigInfo.ConfigInfoController
- * JD-Core Version: 0.7.0.1
- */
复制代码 |
|