
rovf
Veteran
May 7, 2012, 7:05 AM
Post #3 of 7
(2615 views)
|
Re: [cliffyiu] how to extract a string starting from "Name=" in a big string
[In reply to]
|
Can't Post
|
|
my $pos = index($yourstring,"Name="); my $result = $pos >= 0 ? substr($yourstring,$pos) : undef; Or, if you know for sure that your string contains Name=,
my $result = substr(index($yourstring,"Name="));
|