S
Steve Dunn
I'm wondering if anyone can help with the following problem:
I have the following text:
<DOCUMENT>
<TYPE>EX-5
<SEQUENCE>3
<DESCRIPTION>OPINION OF
BRADLEY ARANT, ET AL.
<TEXT>
..
And I have the following (multi-line) regular expression:
^<([^/].+?[^/])>([\S ]+)
This correctly matches any line that contains "<tag>any characters" but not
"</tag>" or "<tag>". The following captures are returned from the
expression:
1 => TYPE
2 => EX-5
1 => SEQUENCE
2 => 3
1 => DESCRIPTION
2 => OPINION OF
I now need to modify the expression to take into account multi-line content.
To give an example, the current expression matches "<DESCRIPTION>OPINION OF"
but it needs to match "<DESCRIPTION>OPINION OF 'new line' BRADLEY ARANT, ET
AL."
Many thanks in advance,
Steve.
I have the following text:
<DOCUMENT>
<TYPE>EX-5
<SEQUENCE>3
<DESCRIPTION>OPINION OF
BRADLEY ARANT, ET AL.
<TEXT>
..
And I have the following (multi-line) regular expression:
^<([^/].+?[^/])>([\S ]+)
This correctly matches any line that contains "<tag>any characters" but not
"</tag>" or "<tag>". The following captures are returned from the
expression:
1 => TYPE
2 => EX-5
1 => SEQUENCE
2 => 3
1 => DESCRIPTION
2 => OPINION OF
I now need to modify the expression to take into account multi-line content.
To give an example, the current expression matches "<DESCRIPTION>OPINION OF"
but it needs to match "<DESCRIPTION>OPINION OF 'new line' BRADLEY ARANT, ET
AL."
Many thanks in advance,
Steve.