Thread Regex match nicht immer: auslesen aus binärer Datei (19 answers)
Opened by GwenDragon at 2006-04-20 22:04

bloonix
 2006-04-21 15:45
#65174 #65174
User since
2005-12-17
1615 Artikel
HausmeisterIn
[Homepage]
user image
[quote=Matze,20.04.2006, 21:57]
Code: (dl )
while ($s = ReadLine($fh) && $s !~ /^$/) {
[/quote]
OT:

RegEx zum matchen/vergleichen würde ich nur nutzen, wenn
eine "und" oder/und "oder" Bedingung notwendig wäre. Beispiel:

Code: (dl )
1
2
3
my $a = "ausgeschlossen";

print "weil der schlüssel drinnen liegt :-)" if $a =~ /aus(geschlossen|gesperrt)/;


Für feste Werte ziehe ich

Code: (dl )
if ($s ne '') {}


vor.\n\n

<!--EDIT|opi|1145621184-->
What is a good module? That's hard to say.
What is good code? That's also hard to say.
One man's Thing of Beauty is another's man's Evil Hack.

View full thread Regex match nicht immer: auslesen aus binärer Datei