I've following text which spans across lines and which I want to match using regular expression -
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.5.1:compile (default-compile) on project RuleEngineImpl: Compilation failure: Compilation failure:
[ERROR] /C:/Jenkins/workspace/RedmineAndReviewboardProject/SVNCheckout/Source/RuleEngineManagement/RuleEngineImpl/src/main/java/com/ruleengine/impl/manager/RuleManagerImpl.java:[26,58] package com.test.ruleengine.api.persistence does not exist
[ERROR] /C:/Jenkins/workspace/RedmineAndReviewboardProject/SVNCheckout/RuleEngineManagement/RuleEngineImpl/src/main/java/com/test/test/ruleengine/impl/manager/RuleManagerImpl.java:[41,17] cannot find symbol
[ERROR] symbol: class RulePersistanceManager
[ERROR] location: class com.ruleengine.impl.manager.RuleManagerImpl
[ERROR] /C:/Jenkins/workspace/RedmineAndReviewboardProject/SVNCheckout/test/Source/RuleEngineManagement/RuleEngineImpl/src/main/java/com/test/test/ruleengine/impl/manager/RuleManagerImpl.java:[55,47] cannot find symbol
[ERROR] symbol: class IRulePersistance
[ERROR] location: class com.test.ruleengine.impl.manager.RuleManagerImpl
[ERROR] /C:/Jenkins/workspace/RedmineAndReviewboardProject/SVNCheckout/test/Source/RuleEngineManagement/RuleEngineImpl/src/main/java/com/test/test/ruleengine/impl/manager/RuleManagerImpl.java:[61,33] cannot find symbol
[ERROR] symbol: class IRulePersistance
[ERROR] location: class com.test.ruleengine.impl.manager.RuleManagerImpl
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
To match this, I wrote following regex but it is not able to find entire path -
^\[ERROR\] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin((.|\n)*)\[ERROR\] To see the full stack trace of the errors, re-run Maven with the -e switch.*
Could you please suggest regular expression which will help to match lengthy text which is spanned across lines?