Re: [Boost-users] [Regex] Group of number at line end

24 Sep
2009
24 Sep
'09
2:55 p.m.
Reiner Hutsch wrote:
If you want the group, not the each number separately, this should work: ^.*[^ 0-9] *([ 0-9]+)$ Testing with perl: perl -e '$x = "This line may contain digits (9) but ends with numbers like 1 2 3 4 5"; $x =~ s/^.*[^ 0-9] *([ 0-9]+)$/$1/g; print "$x\n";' Output: 1 2 3 4 5 Regards, Roland
5718
Age (days ago)
5718
Last active (days ago)
0 comments
1 participants
participants (1)
-
Roland Bock