From: Luca Scaljery Date: 2006-11-20T06:21:00+09:00 Subject: test content string with regex 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/.