Hi All I just tried to test the content of a string, something like this: c = "1234AA" if c.scan( /1234567890/ ) p "OK" else p "NO" end This always returns "OK" :( Any suggestions what goes wrong here. And is this the way to check the content of a string ? Thanks a lot LuCa -- Posted via http://www.ruby-forum.com/.