From: lasitha Date: 2009-04-14T00:22:04+09:00 Subject: Re: Regexp and using the matched value returned/found. On Mon, Apr 13, 2009 at 8:19 PM, Jean Nibee wrote: > [...] > Can someone direct me to a link to reading materials (my Google skills > seem to stink as I am not finding what I expect) on the pattern matching > variables I can use like $1 mentioned above as I am now trying to match > the WHOLE pattern and not just the "dm,ph,ty,st" portion. The keywords seem to be 'ruby pre-defined variables'... First two hits: http://is.gd/saBm http://is.gd/saDy > [...] > The $1 only returns the aforementioned 2 char strings, I'd like to get > the whole thing "SWIdmst" or "SWItynd" etc etc. $& solidarity, lasitha