in reply to RegEx help
But will be anxious to read the other ways.#!/usr/bin/perl -w print "Content-type: text/html\n\n"; use strict; my $version = "CMTS_V03.01.01.41, <<HW_REV: 1.3; VENDOR: ARRIS; BOOTR: + V00.01.0"; $version =~ s/^(.+)V([\d\.]+)$/$2/; print $version,"\n";
|
|---|