From: "Jan E." Date: 2012-06-27T16:34:35+09:00 Subject: Re: help for a little regexp Hi, Quentin RG wrote in post #1066270: > /(?^\w+)\/(?\d{1,2}.\d+)/ > > But it does not match anything... But I tried separatly and it returns > me the good things. I do not understand what's the problem ^^' I don't know how you've come to the "\/" part of the regex. This makes the regex match only strings with some word characters followed by a slash followed by some digits. For example the string "e/12.1516". I think you rather want "\s*=\s*" instead of the "\/" (an equals sign between spaces). By the way: The dot "." has to be escaped. Otherwise it will match *any* character except newlines. And I think you should replace the "\w" with alphabetic characters: "[A-Za-z]". Because the \w also matches digits and the underscore. -- Posted via http://www.ruby-forum.com/.