in reply to extracting number from middle of string

Other monks have already pointed out the problems with the way you are reading from the OUT handle. For more info on regular expressions, you could try doing a search for "extracting". I found a number of nodes.

Extracting a substring?
extracting numbers from a string

And there are many others

  • Comment on Re: extracting number from middle of string