Leser: 1
7 Einträge, 1 Seite |
<span id="Historybar1_lbHistBar" class="path"><a class="path" href="../../main/default.aspx?lang=EN">xyz.com</a> / <a class="path" href="../../main/automotive/default.aspx?lang=EN&cat=Automotive">Automotive</a> / <span>Products & solutions</span> / <span>Acoustic know-how</span></span>
<a class="path" href="../../main/default.aspx?lang=EN">xyz.com</a> / <a class="path" href="../../main/automotive/default.aspx?lang=EN&cat=Automotive">Automotive</a> / <span>Products & solutions</span> / <span>Acoustic know-how</span>
1
2
3
4
5
6
7
m~<span WASDIESENSPANEINDEUTIGMACHT>
(
(?:(?!</span>).)+
|
<span[^>]*>(?:(?!</span>).)+</span>
)+
~x;
1
2
3
4
5
6
7
m~<span WASDIESENSPANEINDEUTIGMACHT>
(
(?:(?!</span>).)+
|
<span[^>]*>(?:(?!</span>).)+</span>
)+
~x;
1
2
3
4
5
6
7
8
9
m~<span[^>]*id="Historybar1_lbHistBar"[^>]*>
(
(?:
<span[^>]*>(?:(?!</span>).)+</span>
|
(?!</span>).
)+
)
~xs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#!/usr/bin/perl
use strict;
use warnings;
my $data;
{
local $/; # Slurp-Mode
$data = <DATA>;
}
if ( $data =~ m~<span[^>]*id="Historybar1_lbHistBar"[^>]*>
(
(?:
<span[^>]*>(?:(?!</span>).)+</span>
|
(?!</span>).
)+
)
~xs
)
{
print "Treffer:\n$1\n";
}
else {
print "Kein Treffer.\n";
}
_ _ DATA _ _
<p>Dies ist ein Auszug aus einem <span class="xxx">möglichen</span>
HTML-Dokument.</p>
<p>
<span id="Historybar1_lbHistBar" class="path">
<a class="path" href="../../main/default.aspx?lang=EN">xyz.com</a>
/
<a class="path" href="../../main/automotive/default.aspx?lang=EN&cat=Automotive">Automotive</a>
/
<span>Products & solutions</span>
/
<span>Acoustic know-how</span></span>
</p>
<p><span class="xxx"><span class="y">Ein</span> weiterer
dummer <span class="z">Testtext</span></span>.</p>
1
2
3
4
5
6
7
8
9
Treffer:
<a class="path" href="../../main/default.aspx?lang=EN">xyz.com</a>
/
<a class="path" href="../../main/automotive/default.aspx?lang=EN&cat=Automotive">Automotive</a>
/
<span>Products & solutions</span>
/
<span>Acoustic know-how</span>
7 Einträge, 1 Seite |