Your regex (with an ending ')' added) literally reads, find "version:" followed by one whitespace character followed by one or more word characters (digits, letters, or underscore), followed by zero or more characters that are either . or a word character. This is equivalent to the simpler regex /version:\s(\w[.\w]*)/, but I have the feeling you are looking for something else; perhaps /version:\s(\d+\.\d+)/ or /version:\s(\d+(\.\d+)?)/.
In reply to Re: matching string
by ysth
in thread matching string
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |