in reply to matching string
The only missing in your regexp is the closing ), and you're using different variable names (try use strict;).
$s_version = "version: 0410.1"; $s_version =~ /version:\s([\w]+[\.\w+]*)/; print("$1\n"); # 0410.1
However, I recommend using insensate's easier to read expression.
|
|---|