DataMystic Support wrote:Naturally after you extract the first line type, there is no text left to match the second type.
You need to combine the patterns like this:
Code: Select all
<h1 id="Results">.*</h1>|<span id="Data">.*</span>
thank you Support - that worked perfectly !!
1) I assume the
| acts as an AND ??
2) Is there any difference between
.* and
(.*) ??
3) What is the difference between
$0 &
$1$2 as they produce different outputs ??
Final issue I need to solve is with output of data with
correct new lines
Code: Select all
Perl pattern [<h1 id="Results">(.*)</h1>|<span id="Data">(.*)</span>] with [$0\r\n]
[X] Extract matches
Maximum text buffer size 99999
[X] '.' matches newline
the following code outputs:
Results ABC
Data 123
Results DEF
Data 456
However, the output I need is:
Results ABC
Data 123
--- NEW LINE ---
Results DEF
Data 456
--- NEW LINE ---
Cheers