• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 154
  • Last Modified:

regular expresion for all lines

hello, i have one question.

i have multiline text (more than 50 lines) and i want to get all lines with regexp:

(.*) returns first line only,
(.*\n.*) returns first and second lines.

how can i define regulare expresion, that returns all lines?

Thank you!
0
igor_007
Asked:
igor_007
1 Solution
 
herrmann1001Commented:
?, why a regexp that returns all what you allready have?
0
 
igor_007Author Commented:
i got e-mail and i should get body of this e-mail with regexp
0
 
igor_007Author Commented:
i got e-mail and i should get body of this e-mail with regexp
0
Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

 
ddaCommented:
use /s modifier.
0
 
igor_007Author Commented:
can you please post regular expresion pattern here?
0
 
ozoCommented:
/\n\n(.*)/s
0
 
igor_007Author Commented:
i do it so:
((.*\n.*)*)

thank you!
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now