From: Zouplaz Date: 2006-09-15T08:25:49+09:00 Subject: Keep only one part of a string Hello, how to better write that : self.ident = self.ident[/0-9*/] I'm pretty sure there is a String method that would keep only the first match of the regex but I didn't found it in the String doc reference Thanks