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.
In reply to Re: matching string
by ikegami
in thread matching string
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |