From: Vincent Foley Date: 2001-12-26T13:11:27+09:00 Subject: [ruby-talk:29431] Help with Regular Expression Hi, I would like to know how I would check if a variable's content matches a regular expression. Example (complete the code): [code] #!/usr/bin/env ruby a = gets.chomp # Complete here. I want to know if a is an integer with regular # expressions (/\d*/). Can I do that? How? [/code] -- Vincent Foley-Bourgon Email: gnuvince@yahoo.ca Homepage: http://darkhost.mine.nu:81