in reply to March a regex using split function
c:\@Work\Perl\monks>perl -wMstrict -le "my $s = '2014-04-23 14:66:87 HEAP - [USAGE: 1948.3, FREE: 1400]; NON- +HEAP - [USAGE: 611.9, FREE: 52.2]'; ;; my ($f) = $s =~ m{ FREE: \s* (\d+) }xms or die 'no FREE'; print qq{'$f'}; " '1400'
Give a man a fish: <%-{-{-{-<
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: March a regex using split function
by sreek3502 (Novice) on Sep 13, 2017 at 04:52 UTC | |
by Laurent_R (Canon) on Sep 13, 2017 at 06:14 UTC | |
by perldigious (Priest) on Sep 13, 2017 at 12:56 UTC | |
by AnomalousMonk (Archbishop) on Sep 13, 2017 at 06:18 UTC | |
by Anonymous Monk on Sep 13, 2017 at 07:34 UTC |