我正在尝试在段落中搜索特定行。有人可以用正则表达式帮助我吗?
我需要在以下段落中搜索“无法扩展表”:
BasicData:RootContextID = 3a88bfa0c11511e1915e9e572a3f5ee0,AuditTimestamp = 1340883271834,关联标识符= 3a88bfa0c11511e1915e9e572a3f5ee0,AuditSchemaName = wMSession,AuditSchemaVersion = 1,服务器ID = wbrbwm7qi1:5555,的SessionID = c8231fb0c11311e1872d8aebd5d052bf,SessionState的= 2,用户ID =默认,SESSIONNAME = 172.18.186.11,RPCS = 0,年龄= 621422,$$$ AUDITPROCESS = {MemData:DefaultJDBCConfig_1 = 4},ERRORINFO = java.sql.SQLException:[sag-cjdbc42-0000] [Oracle JDBC驱动程序] [Oracle] ORA-01653:无法扩展表WMIS712。 WMSESSION在表空间中以128在表空间中的位置WEBMDATA 2012-07-10 08:22:01 SAST [ISS.0095.0010E] AuditLogManager运行时异常:>>> BasicData:RootContextID = 8faed230ca5711e1b0a6f6fdea974793,AuditTimestamp = 1341901321940,ContextID = 8faed230ca7931auddbSession 1,ServerID = wbrbwm7qi1:5555,SessionID = 8fac6130ca5711e1b0a3db011b193ad1,SessionState = 2,UserID = Administrator,SessionName = system,Rpcs = 0,Age = 16 <<
最佳答案
如果您知道确切的文本,为什么不只使用String的indexOf?
关于java - 正则表达式以搜索段落中的特定行,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/12008857/