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:
Update: Added ? after (?:_REV).
In the SW regex you can do this:
What do you want to do in the verion regex if there is more than one version?push @array, $1 if ( /SW(?:_REV)?:?\s*([^;\$]+)/ );
Update: Added ? after (?:_REV).
|
---|
In Section
Seekers of Perl Wisdom