in reply to
RegEx advice needed
Do you really want to strip off the last dot in rdtg7.0.4.7?
In the SW regex you can do this:
push @array, $1 if ( /SW(?:_REV)?:?\s*([^;\$]+)/ );
[download]
What do you want to do in the verion regex if there is more than one
version
?
Update:
Added ? after (?:_REV).
Comment on
Re: RegEx advice needed
Download
Code
In Section
Seekers of Perl Wisdom