Link to home
Start Free TrialLog in
Avatar of igor_007
igor_007

asked on

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!
Avatar of herrmann1001
herrmann1001

?, why a regexp that returns all what you allready have?
Avatar of igor_007

ASKER

i got e-mail and i should get body of this e-mail with regexp
i got e-mail and i should get body of this e-mail with regexp
use /s modifier.
can you please post regular expresion pattern here?
ASKER CERTIFIED SOLUTION
Avatar of ozo
ozo
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
i do it so:
((.*\n.*)*)

thank you!