Thread Bestimmte Anzahl von Zeichen mit Regexp filtern (38 answers)
Opened by bloonix at 2006-01-12 14:05

bloonix
 2006-01-12 14:21
#61799 #61799
User since
2005-12-17
1615 Artikel
HausmeisterIn
[Homepage]
user image
[quote=sesth,12.01.2006, 13:09]Bei mehrzeiligen Strings benötigt der Substitue ein m (Multiline):
Code: (dl )
$string1 =~ s/(.{8})(.*)/$1/m;
[/quote]
Modifier war das Schlagwort :-)

Code: (dl )
$string1 =~ s/(.{8})(.*)/$1/s;


muss es sein.

Danke.
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 Bestimmte Anzahl von Zeichen mit Regexp filtern