From: Lars Haugseth Date: 2012-06-27T18:01:03+09:00 Subject: Re: help for a little regexp On 06/27/2012 09:34 AM, Jan E. wrote: > Quentin RG wrote in post #1066270: >> /(?^\w+)\/(?\d{1,2}.\d+)/ > > And I think you should replace the "\w" with alphabetic characters: > "[A-Za-z]". Because the \w also matches digits Even better, use [[:alpha:]]+ so that the expression also matches accented and foreign alphabetic characters. "déjà vu".scan(/\w+/) => ["d", "j", "vu"] "déjà vu".scan(/[[:alpha:]]+/) => ["déjà", "vu"] http://www.regular-expressions.info/posixbrackets.html -- Lars Haugseth