我有一个字符串,如 1 - Copy (2)
2 - Copy (2)
< EM> 3 - Copy (2)
即可。在这里,我想要使用字符串 Copy (2)
替换包含 demo
的字符串。
1 - Copy (2)
demo
2 - Copy (2)
demo
3 - Copy (2)
demo
我试过像^.*Copy (2).*$
但它不起作用。
答案 0 :(得分:0)
您需要转义括号: 2017-10-03 22:24:10.195 WARN 300 --- [ost-startStop-1] o.a.tomcat.jdbc.pool.PooledConnection : Not loading a JDBC driver as driverClassName property is null.
2017-10-03 22:24:10.240 ERROR 300 --- [ost-startStop-1] o.a.tomcat.jdbc.pool.ConnectionPool : Unable to create initial connections of pool.
java.sql.SQLException: The url cannot be null
at java.sql.DriverManager.getConnection(DriverManager.java:649) ~[na:1.8.0_144]
Caused by: org.hibernate.HibernateException: Access to DialectResolutionInfo cannot be null when 'hibernate.dialect' not set
at ...