Guest_imported
New member
- Jan 1, 1970
- 0
What is the best way to match 5 consecutive numbers from a $line to create a new variable?
I've already isolated the $line from a <FILE> that has the info I need.
$line = "Member ID: 12345";
$number = /5_numbers_from_$line/i;
(this needs to be the 12345 part of the above $line, in the same order they are already in.)
Thanks in advance,
Robert Hughes
I've already isolated the $line from a <FILE> that has the info I need.
$line = "Member ID: 12345";
$number = /5_numbers_from_$line/i;
(this needs to be the 12345 part of the above $line, in the same order they are already in.)
Thanks in advance,
Robert Hughes