Thread chr in regular expression (4 answers)
Opened by Henry07 at 2020-01-18 09:27

GwenDragon
 2020-01-18 10:51
#191145 #191145
User since
2005-01-17
14741 articles
Admin1
[Homepage]
user image
So geht auch:
Code (perl): (dl )
1
2
my $c = chr(150);
$_ =~ s/^([^{$c}]*){$c}+.*$/$1/g;


Warum muss du das Zeichen als dezimalen Code suchen?
Code (perl): (dl )
$_ =~ s/^([^\x96]*)\x96+.*$/$1/g;

Last edited: 2020-01-18 10:57:37 +0100 (CET)

View full thread chr in regular expression