http://qs1969.pair.com?node_id=301673


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*([^;\$]+)/ );
What do you want to do in the verion regex if there is more than one version?
Update: Added ? after (?:_REV).