Thread wieder suchen und ersetzen (10 answers)
Opened by jan99 at 2015-11-07 18:20

MarkusH
 2015-11-07 18:39
#182808 #182808
User since
2012-04-08
161 Artikel
BenutzerIn
[default_avatar]
1.
Code (perl): (dl )
1
2
3
my $text = "upload='true'";
$text =~ s/upload='true'/upload='false'/;
print $text;


2.
Code (perl): (dl )
1
2
3
my $text2 = "rue' version='4' changeset='6456424' lat='36.7256674' lon='-4.4539391' />";
my ($latval) = $text2 =~ m/lat='(\d+\.\d+)/;
print $latval;
$q =~ /(bb|[^b]{2})/

View full thread wieder suchen und ersetzen