hi

 errorMsg="Subsequent deposit instructions not found or
incomplete.Initial deposit instructions not found or incomplete.Analysis
complete for policy (SS13323496).Analysis complete for policy
(SS13323496), coverage (01).Premium calculation restricted on coverage
(01). Rates not
re-calculated."


puts errorMsg[/Analysis complete for policy \(.*?\), coverage \(.*?\)/]

the above line give the output
---
Analysis complete for policy (SS13323496).Analysis complete for policy
(SS13323496), coverage (01)
---

My question here is, the above one should give the output
"Analysis complete for policy (SS13323496), coverage (01)"

 why it includes "Analysis complete for policy (SS13323496)" in the
front?could anyone please clarify me?

-- 
Posted via http://www.ruby-forum.com/.