You are viewing a plain text version of this content. The canonical link for it is here.
Posted to oro-user@jakarta.apache.org by Annu Singh <An...@PANACYA.com> on 2002/02/28 19:20:11 UTC

Regular expression to match multiple lines.

Hi,

  I need to match multiple lines in my regular expression. The data is
somewhat like:

##### Message start #####
line 1
line 2
line 3

line n
#### Message ends ####

  I have tried to use :

   /^#### Message start.*Message ends ####/s

  This somehow does not return me the correct number of multiple lines. Any
better suggestions please?

Thanks,
Annu
CONFIDENTIALITY NOTICE:  E-mail may contain confidential information that is
legally protected.  Do not read this e-mail if you are not the intended
recipient. This e-mail transmission, and any documents, files or previous
e-mail messages  attached to it may contain confidential information that is
legally protected.  If you are not the intended recipient or a person
responsible for delivering it to the intended recipient,  you are hereby
notified that any disclosure, copying, distribution or use of any of the
information contained in or attached to this transmission is STRICTLY
PROHIBITED.  If you have received this transmission in error, please
immediately notify us by reply e-mail, by forwarding this to
administrator@panacya.com or by telephone at (877) PANACYA, and destroy the
original transmission and its attachments without reading or saving in any
manner.  Thank you.  For information about PANACYA Inc., please visit our
website at http://www.panacya.com.