Hello, everybody! I am new here. I am also relatively new to ruby. I don't know if it's OK to ask questions here before the 48 hours period ends. So I am going to shoot straight and ask. I am trying to create a perfect regexp match string to match an array string like [1, -1, 4, 5] So far the best I've came up with is /^\[-*\d+,*.*\]$/ If I add \s+ the string doesn't match. /^\[-*\d+,*\s+.*\]$/ And I have no idea why...