should do.my $i = 2; substr($fullstring, $i, index($fullstring, ' ', $i) - $i);
Or use a regexp.
In reply to Re: Substring consisting of all the characters until "character X"?
by JavaFan
in thread Substring consisting of all the characters until "character X"?
by TheMartianGeek
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |