Daniel Finnie wrote: > Why are you doing /[\s\d\w]+?/? Just use /.+?/. > > Dan Good point. I was using .+? earlier, but thought that might be part of my problem. It seems to accept @x even if it contains more than 3 [joe][/joe] pairs. -- Posted via http://www.ruby-forum.com/.