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