Thread pattern matching - oh god (5 answers)
Opened by misuzu at 2004-03-25 15:20

renee
 2004-03-25 15:25
#81220 #81220
User since
2003-08-04
14371 Artikel
ModeratorIn
[Homepage] [default_avatar]
Code: (dl )
1
2
3
4
5
6
7
8
9
10
#! /usr/bin/perl

$content = qq~<th width=15% align=right>Preis</th><script>
b(2302700,"3","Tunesien","DZ/HP","ATT","Kandelorleopatra",193);
b(2302900,"3","Tunesien","DZ/HP","FLY","Sultan-Sipahi",201);
</script>pt>~;

(@values) = $content =~ /b\([^\)]+?,(\d+)\)/g;

print $_,"\n" for(@values);
OTRS-Erweiterungen (http://feature-addons.de/)
Frankfurt Perlmongers (http://frankfurt.pm/)
--

Unterlagen OTRS-Workshop 2012: http://otrs.perl-services.de/workshop.html
Perl-Entwicklung: http://perl-services.de/

View full thread pattern matching - oh god